Re: exception handling in plperlu

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: exception handling in plperlu
Дата
Msg-id 9e4684ce0703162143g7f8d0ff4r45ac483806cf8c2b@mail.gmail.com
обсуждение исходный текст
Ответ на Re: exception handling in plperlu  ("Jasbinder Singh Bali" <jsbali@gmail.com>)
Список pgsql-general
On 3/16/07, Jasbinder Singh Bali <jsbali@gmail.com> wrote:
> just wondeng why doesn't it let me put
> my $dbh=DBI->connect("dbi:Pg:dbname=dbunmask;
> host=192.168.0.120; port=5432;", "", "");
> in eval

you dont need to put ->connect in eval.
just set connect option 'raiseerror' to 0 (and printerror as well). in
this situation it will simply set errorcode. no eval{} required.

depesz

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

Предыдущее
От: "hubert depesz lubaczewski"
Дата:
Сообщение: Re: Practical question.
Следующее
От: Bertram Scharpf
Дата:
Сообщение: Re: PgSql on Vista?