Re: Libpq and transactions - Mailing list pgsql-interfaces

From Tomasz Myrta
Subject Re: Libpq and transactions
Date
Msg-id 40EBA0B0.9040707@klaster.net
Whole thread Raw
In response to Libpq and transactions  (Brijesh Shrivastav <Bshrivastav@esri.com>)
List pgsql-interfaces
On 2004-07-07 01:50, Użytkownik Brijesh Shrivastav napisał:
> Hi! 
> 
> I have a question about how transaction behaves in libpq library.
> It is very clear in doc that PQexec treats each command (which could 
> comprise of more than one sql command) as a single transactions. 

Not exactly. PQexec treats each command as a single transaction only 
when you don't add "begin" before your query. If you add "begin" before 
first query - it will finish after "commit" or "rollback".

Regards,
Tomasz Myrta


pgsql-interfaces by date:

Previous
From: Greg Stark
Date:
Subject: Re: pgin.tcl pg_exec_prepared slow (was: Released...)
Next
From: Brijesh Shrivastav
Date:
Subject: Re: Libpq and transactions