Luis Alberto Pérez Paz wrote:
> Hi everybody!
>
> I'm migrating some sybase store procedures to postgres functions,
> I almost have found all that I need, however I dont know how to check the
> error status of the last transaction.
> I need to find in postgres the equivalent to the sybase @@error global
> variable.
If you're using pl/pgsql then you'll want to read the "Trapping Errors"
chapter of the manuals.
http://www.postgresql.org/docs/8.1/static/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING
--
Richard Huxton
Archonet Ltd
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера