[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [575] trunk/LedgerSMB/User.pm



Revision: 575
          http://svn.sourceforge.net/ledger-smb/?rev=575&view=rev
Author:   einhverfr
Date:     2006-11-13 20:00:21 -0800 (Mon, 13 Nov 2006)

Log Message:
-----------
Adding transaction handling to db script processing.

Modified Paths:
--------------
    trunk/LedgerSMB/User.pm

Modified: trunk/LedgerSMB/User.pm
===================================================================
--- trunk/LedgerSMB/User.pm	2006-11-14 03:32:33 UTC (rev 574)
+++ trunk/LedgerSMB/User.pm	2006-11-14 04:00:21 UTC (rev 575)
@@ -450,9 +450,11 @@
 	
 	open(PSQL, "| psql") or $form->error(__FILE__.':'.__LINE__.": psql : $! \n");
 	print PSQL "\\o spool/log \n";
+	print PSQL "BEGIN;\n";
 	while (<FH>){
 		print PSQL $_;
 	}
+	print PSQL "COMMIT;\n";
 	close FH;
  
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.