Skip to content

Commit

Permalink
Item1146: autocommit is a mysql specific setting :/
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/DbiContrib@2963 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Mar 11, 2009
1 parent 2b52786 commit ced7e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Foswiki/Contrib/DbiContrib.pm
Expand Up @@ -101,7 +101,7 @@ sub connect {
( $this->{dsn}, $this->{dsn_user}, $this->{dsn_password} ) );
return;
}
$this->{DB}->{AutoCommit} = 0;
$this->{DB}->{AutoCommit} = 0 if ($this->{dsn} =~ /:mysql:/);
$this->{DB}->{RaiseError} = 1;
}
return $this->{DB};
Expand Down

0 comments on commit ced7e7a

Please sign in to comment.