Re: DBI driver and transactions

From: Christoph Dalitz <christoph(dot)dalitz(at)hs-niederrhein(dot)de>
To: nandrews(at)investsystems(dot)co(dot)uk
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: DBI driver and transactions
Date: 2003-02-03 08:06:51
Message-ID: 20030203090651.15473dae.christoph.dalitz@hs-niederrhein.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Date: Mon, 3 Feb 2003 02:18:11 +0000 (GMT)
> From: "Nigel J. Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
>
> With AutoCommit => 0 I see a BEGIN logged right before the
> first query I send...
>
This is in compliance to the SQL2 standard, which says that
transactions implicitly begin with the first DML command after
the last commit/rollback. As Postgres has explicit transaction
beginning, the DBD-Pg driver must emulate the SQL2 behaviour by
automatically issuing a BEGIN statement.

DBI provides the methods begin(), commit() and rollback() for
transaction management; begin() usually does nothing and thus
does no harm when you call it.

Christoph Dalitz

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gabriel Munteanu 2003-02-03 08:17:38 Re: List online archives and spam
Previous Message Christoph Dalitz 2003-02-03 08:03:51 List online archives and spam