freeside/bin sequences.reset,1.1,1.2
ivan
ivan at pouncequick.420.am
Wed May 12 11:07:43 PDT 2004
Update of /home/cvs/cvsroot/freeside/bin
In directory pouncequick:/tmp/cvs-serv30432
Modified Files:
sequences.reset
Log Message:
easier this way
Index: sequences.reset
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/sequences.reset,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- sequences.reset 12 May 2004 18:02:15 -0000 1.1
+++ sequences.reset 12 May 2004 18:07:41 -0000 1.2
@@ -13,7 +13,11 @@
##next unless $default =~ /nextval/;
#print "$local\n";
- my $statement = "select setval('${table}_${primary_key}_seq', ( select max($primary_key) from $table ) )\n";
+ my $statement = "select setval('${table}_${primary_key}_seq', ( select max($primary_key) from $table ) )";
+
+ print "$statement;\n";
+ next;
+
my $sth = dbh->prepare($statement) or do {
warn dbh->errstr. " preparing $statement\n";
next;
More information about the freeside-commits
mailing list