| От | Richard Huxton |
|---|---|
| Тема | Re: PL/pgSQL equivalent to PQtransactionStatus? |
| Дата | |
| Msg-id | 48920090.1030105@archonet.com обсуждение исходный текст |
| Ответ на | PL/pgSQL equivalent to PQtransactionStatus? (Christophe <xof@thebuild.com>) |
| Ответы |
Re: PL/pgSQL equivalent to PQtransactionStatus?
|
| Список | pgsql-general |
Christophe wrote: > My apologies if this is in the docs and I missed it, but is there a > PL/pgSQL function equivalent for the pglib function PQtransactionStatus > (i.e., a way to find out if we're in an open transaction block, and if > that transaction is in an error status)? A pl/pgsql function *always* executes within a transaction. If an error occurs while that function is executing you can catch the exception (see the "Trapping Errors" section of the pl/pgsql docs). If an error occurs before the function executes then no other statements will be executed. HTH -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера