[open-ils-commits] r11951 - trunk/Open-ILS/src/extras
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Jan 25 12:17:44 EST 2009
Author: miker
Date: 2009-01-25 12:17:41 -0500 (Sun, 25 Jan 2009)
New Revision: 11951
Modified:
trunk/Open-ILS/src/extras/fast-extract
Log:
restriction on non-real IDs
Modified: trunk/Open-ILS/src/extras/fast-extract
===================================================================
--- trunk/Open-ILS/src/extras/fast-extract 2009-01-25 16:54:02 UTC (rev 11950)
+++ trunk/Open-ILS/src/extras/fast-extract 2009-01-25 17:17:41 UTC (rev 11951)
@@ -47,8 +47,8 @@
my $dbh = DBI->connect($dsn,$db_user,$db_pw, {AutoCommit => 1, pg_enable_utf8 => 1, RaiseError => 1});
-my $SQL = 'SELECT id FROM biblio.record_entry';
-$SQL .= " WHERE edit_date > '$after'" if ($after);
+my $SQL = 'SELECT id FROM biblio.record_entry WHERE id > 0';
+$SQL .= " AND edit_date > '$after'" if ($after);
my $ids = $dbh->selectcol_arrayref($SQL);
More information about the open-ils-commits
mailing list