pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc Herbert <Marc.Herbert@continuent.com>
To: pgsql-odbc@postgresql.org
Subject: BEGIN and autocommit(false) (was: some question about SavePoint ?)
Date: Thu, 19 Jan 2006 15:03:54 +0100
Message-ID: <khjslrktiut.fsf_-_@meije.emic.fr> (raw)
References: <43CF0B0B.6000101@necas.nec.com.cn>
	<20060119111957.GA31571@soptik.pzkagis.cz>

Ludek Finstrle <luf@pzkagis.cz> writes:

>>  1. set SQL_AUTOCOMMIT_OFF
>
> Yes you do ... When you use autocommit = off you have to start and end
> transaction manually.

Wrong: in ODBC, you just have to "end" transactions manually, you
don't have to start them, they are implicitely started when the
previous one ends.

In ODBC (and JDBC), you are ALWAYS inside a transaction, there is no
such thing as a transactional "no man's land" from an ODBC interface
point of view (internal, hidden implementation details may differ).




view thread (2+ messages)  latest in thread

Message-ID: <khjslrktiut.fsf_-_@meije.emic.fr>
Permalink:  ../khjslrktiut.fsf_-_@meije.emic.fr/
Also on:    postgresql.org/message-id/khjslrktiut.fsf_-_@meije.emic.fr

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: Marc.Herbert@continuent.com
  Subject: Re: BEGIN and autocommit(false) (was: some question about SavePoint ?)
  In-Reply-To: <khjslrktiut.fsf_-_@meije.emic.fr>
  References: <43CF0B0B.6000101@necas.nec.com.cn> <20060119111957.GA31571@soptik.pzkagis.cz> <khjslrktiut.fsf_-_@meije.emic.fr>

* 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