ecpg autocommit weirdness

From: Adriaan Joubert <a(dot)joubert(at)albourne(dot)com>
To: Postgresql <pgsql-hackers(at)postgreSQL(dot)org>
Subject: ecpg autocommit weirdness
Date: 2001-03-29 08:56:44
Message-ID: 3AC2F8CC.57CA4124@albourne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I've got the weird behaviour in an ecpg programme that when I issue

EXEC SQL SET AUTOCOMMIT TO ON;

transactions behave as one would expect, i.e. I can use BEGIN
WORK/COMMIT/ROLLBACK, but when I set

EXEC SQL SET AUTOCOMMIT TO OFF;

every statement is wrapped in its own transaction, whether I have issued
a BEGIN WORK or not. This seems a tad counter-intuitive. Previous
discussions on the mailing list seem to suggest that it should be the
other way round?

This is on 7.1RC1 on Linux.

Cheers,

Adriaan

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Klimov 2001-03-29 09:18:16 Re: Ultrix port
Previous Message Maurizio 2001-03-29 08:53:53 testing last sanpshot in QNX platform