From ee7ad62883f5d732bbb26dd0dc374f5f2305e292 Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 1 Dec 2008 19:43:10 +0000 Subject: [PATCH] Backport r11369 from trunk to handle the clean schema import scenario git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@11370 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