Re: Transactions: DBI vs. SQL
- From: martin.evans@xxxxxxxxxxxx (Martin J. Evans)
- Date: Sun, 26 Mar 2006 10:00:28 +0100
Tom Mornini wrote:
You need to turn AutoCommit off with:
my $dbh = DBI->connect('dbi:Pg:dbname=test', 'postgres', '...',
{ PrintError => 1, RaiseError => 0, AutoCommit => 0 });
You should not have to turn autocommit off with begin_work:
From the docs:
"Enable transactions (by turning AutoCommit off) until the next call to commit or rollback. After the next commit or rollback, AutoCommit will automatically be turned on again."
I certainly do not turn autocommit off with DBD::ODBC and dbd::mysql
and it works as I'd expect.
Martin
.
- Follow-Ups:
- Re: Transactions: DBI vs. SQL
- From: Terence J. Young
- Re: Transactions: DBI vs. SQL
- From: John Siracusa
- Re: Transactions: DBI vs. SQL
- References:
- Transactions: DBI vs. SQL
- From: John Siracusa
- Re: Transactions: DBI vs. SQL
- From: Tom Mornini
- Transactions: DBI vs. SQL
- Prev by Date: Re: Transactions: DBI vs. SQL
- Next by Date: Perl 5.8.8 and DBI 1.50 crashes
- Previous by thread: Re: Transactions: DBI vs. SQL
- Next by thread: Re: Transactions: DBI vs. SQL
- Index(es):
Relevant Pages
|