chiark / gitweb /
Do referential integrity check on every incoming update
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 2 Nov 2009 15:57:32 +0000 (15:57 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 2 Nov 2009 15:57:32 +0000 (15:57 +0000)
yarrg/commod-email-processor

index 1cff462cda1c67d451ee8064b9ac952e8e096cae..8acf4c105d118c38d99f49425eea89806c0a0f76 100755 (executable)
@@ -195,7 +195,7 @@ sub main () {
     pipethrough_run_finish($pt, 'gunzip <$deduped_tsv.gz');
 
 #    print "\n";
-    $dbh->commit();
+    db_chkcommit();
 
     # select * from ((buy natural join commods) natural join stalls) natural join islands;
     # select * from ((sell natural join commods) natural join stalls) natural join islands;