| От | Wiebe Cazemier |
|---|---|
| Тема | Re: Do Postgres exceptions rise up the stack? |
| Дата | |
| Msg-id | f66hmq$80s$1@sea.gmane.org обсуждение исходный текст |
| Ответ на | Do Postgres exceptions rise up the stack? ("Postgres User" <postgres.developer@gmail.com>) |
| Ответы |
Re: Do Postgres exceptions rise up the stack?
|
| Список | pgsql-general |
On Saturday 30 June 2007 23:14, Postgres User wrote: > A basic question about raising exceptions in Postgres: > > If Function A calls Function B > > and Func B raises an exception, will the exception roll back the > transaction in Func A by default? Or do I need to trap and re-raise > the exception in Func A? > > Thanks. Any exception aborts the transaction. That's how exceptions work. If you don't catch them, they bubble all the way to the surface. Otherwise it would be too much like if-statement error checking.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера