summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLedgerSMB/User.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/LedgerSMB/User.pm b/LedgerSMB/User.pm
index 4bdb0519..834c9ee4 100755
--- a/LedgerSMB/User.pm
+++ b/LedgerSMB/User.pm
@@ -450,9 +450,11 @@ sub process_query {
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;
}