From: Brijesh Shrivastav <Bshrivastav@esri.com>
To: PostgreSQL Interfaces <pgsql-interfaces@postgresql.org>
Subject: Libpq and transactions
Date: Tue, 6 Jul 2004 16:50:49 -0700
Message-ID: <491DC5F3D279CD4EB4B157DDD62237F404E27EFD@zipwire.esri.com> (raw)
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.
Does PQexecParams() and PQexecPrepared() also behaves the same?
Is there a way to send multiple sql commands separately through
libpq library and rollback if nth command fails. For example, Can I
insert 5 rows using PQexecParams() and rollback all 5 rows if
sixth insert fails?
Regards,
Brijesh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: Bshrivastav@esri.com
Subject: Re: Libpq and transactions
In-Reply-To: <491DC5F3D279CD4EB4B157DDD62237F404E27EFD@zipwire.esri.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox