summaryrefslogtreecommitdiff
path: root/LedgerSMB/User.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/User.pm')
-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;
}