From 1b6144b26992817e654397d3844e0a1c9a960501 Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 1 Dec 2008 19:41:31 +0000 Subject: [PATCH] Let's handle the clean Evergreen schema import situation git-svn-id: svn://svn.open-ils.org/ILS/trunk@11369 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/extras/import/marc2bre.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Open-ILS/src/extras/import/marc2bre.pl b/Open-ILS/src/extras/import/marc2bre.pl index c8663e3e95..7b90dab1c7 100755 --- a/Open-ILS/src/extras/import/marc2bre.pl +++ b/Open-ILS/src/extras/import/marc2bre.pl @@ -93,6 +93,12 @@ if (!$recid) { $sth->fetch; $sth->finish; $dbh->disconnect; + + # In a clean Evergreen schema, the maximum ID will be -1; but sequences + # have to start at 1, so handle the clean Evergreen schema situation + if ($recid == 0) { + $recid = 1; + } } my %tcn_source_map = ( -- 2.11.0