summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-24 19:10:19 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-24 19:10:19 +0000
commit0e0da8e4ec635bb6559447cdd1cfd2f64671357c (patch)
tree4df169deba89162780daeabdd70f98edf69d68da
parent0af29a7145e05bdc2d89a689ce77cddd97e95ff1 (diff)
turning off server-side prepare in new code because it won't buy us anything with functions and just wastes server time
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1002 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xLedgerSMB.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/LedgerSMB.pm b/LedgerSMB.pm
index ee849723..8e55b933 100755
--- a/LedgerSMB.pm
+++ b/LedgerSMB.pm
@@ -528,6 +528,8 @@ sub db_init {
my $dbh = DBI->connect($myconfig->{dbconnect}, $myconfig->{dbuser},
$myconfig->{dbpasswd}, {AutoCommit => 0}) or $self->dberror;
+ $dbh->{pg_server_prepare} = 0;
+
if ($myconfig->{dboptions}) {
$dbh->do($myconfig->{dboptions});
}