ecpg autocommit weirdness

Поиск
Список
Период
Сортировка
От Adriaan Joubert
Тема ecpg autocommit weirdness
Дата
Msg-id 3AC2F8CC.57CA4124@albourne.com
обсуждение исходный текст
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re: Call for platforms
Следующее
От: Alexander Klimov
Дата:
Сообщение: Re: Ultrix port