Permalink
Browse files

Use _dbh->{AutoCommit} instead of SET AUTOCOMMIT.

  • Loading branch information...
jamiemccarthy committed Feb 3, 2004
1 parent cd27ae8 commit b0f8a2d687312712193f28b673b27d83f35ad2e6
Showing with 3 additions and 3 deletions.
  1. +3 −3 Slash/DB/Utility/Utility.pm
@@ -400,12 +400,12 @@ sub _querylog_writecache {
&& @{$self->{_querylog}{cache}};
my $dbh = $self->{_querylog}{db}{_dbh};
return unless $dbh;
$dbh->do("SET AUTOCOMMIT=0");
$dbh->{AutoCommit} = 0;
while (my $sql = shift @{$self->{_querylog}{cache}}) {
$dbh->do($sql);
}
$dbh->do("COMMIT");
$dbh->do("SET AUTOCOMMIT=1");
$dbh->commit;
$dbh->{AutoCommit} = 1;
}
########################################################

0 comments on commit b0f8a2d

Please sign in to comment.