AW: [HACKERS] Begin statement again

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas
Тема AW: [HACKERS] Begin statement again
Дата
Msg-id 01BD4E7E.9BEA20A0@pc9358.sd.spardat.at
обсуждение исходный текст
Ответы Re: AW: [HACKERS] Begin statement again  (jwieck@debis.com (Jan Wieck))
Список pgsql-hackers
I think we should depreciate the BEGIN/END keywords in SQL to allow them
to be used for the new PL/SQL. So definitely leave them out of ecpg now.
Only accept BEGIN WORK and BEGIN TRANSACTION. (do a sequence of commit work; begin work)
BTW.: why is a transaction always open ? A lot of programs would never need a
transaction. Is it because of cursors ?

Andreas


Michael Meskes wrote:
Forget about my last question. I found the begin call in ecpglib.c. It doesn
what you expect from a embedded SQL preprocessor, it starts a new
transaction as soon as one ends. Nevertheless I thought about accepting
explicit begin calls in the new version. But they will always generate a
warning message as the code's always inside a transaction. So I could as
well accept the begin call but not give it to the backend.





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

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Begin statement again
Следующее
От: jwieck@debis.com (Jan Wieck)
Дата:
Сообщение: Re: [HACKERS] PL/pgSQL - for discussion