From faa1b7b122b24ae5a9b85cd34942279fcc7e3988 Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 30 Mar 2010 14:34:53 +0000 Subject: [PATCH] Patch from Lee Dickens and Galen Charlton to correct a thinko in the recent change to pg_loader -- ignore auto-pkey tables, as those have had their sequences adjusted, um, automatically git-svn-id: svn://svn.open-ils.org/ILS/trunk@16054 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/extras/import/pg_loader.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/extras/import/pg_loader.pl b/Open-ILS/src/extras/import/pg_loader.pl index 45b3f00ff..2e9eb756f 100755 --- a/Open-ILS/src/extras/import/pg_loader.pl +++ b/Open-ILS/src/extras/import/pg_loader.pl @@ -126,7 +126,7 @@ for my $h (@order) { $output->print("SELECT reporter.disable_materialized_simple_record_trigger();\n"); } - $after_commit .= "SELECT setval('$fieldcache{$h}{sequence}'::TEXT, (SELECT MAX($fieldcache{$h}{pkey}) FROM $fieldcache{$h}{table}), TRUE);\n"; + $after_commit .= "SELECT setval('$fieldcache{$h}{sequence}'::TEXT, (SELECT MAX($fieldcache{$h}{pkey}) FROM $fieldcache{$h}{table}), TRUE);\n" if (!grep { $_ eq $h} @auto); } -- 2.11.0