| От | Peter Eisentraut |
|---|---|
| Тема | Re: NULLs in ecpg |
| Дата | |
| Msg-id | 200407221951.39787.peter_e@gmx.net обсуждение исходный текст |
| Ответ на | Re: NULLs in ecpg (<wespvp@syntegra.com>) |
| Список | pgsql-interfaces |
wespvp@syntegra.com wrote:
> What is the scope of a BEGIN or an implicit transaction in ECPG? Is
> it a physical subroutine, or can it span functions containing EXEC
> SQL statements?
It is independent of the control flow of your C program. Only the order
of the actually executed SQL statements matters.
> For example, if I have:
>
>
> void a (xxx)
> {
> EXEC SQL SELECT ... for UPDATE;
> EXEC SQL UPDATE ...
> }
>
> void b (xxx)
> {
> EXEC SQL begin;
>
> a(xxxx);
>
> a(yyyy);
>
> EXEC SQL COMMIT;
> }
>
>
> Do the multiple calls to 'a' remain in the same transaction?
Indeed
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера