Re: exception handling in plperlu - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: exception handling in plperlu
Date
Msg-id 9e4684ce0703162143g7f8d0ff4r45ac483806cf8c2b@mail.gmail.com
Whole thread Raw
In response to Re: exception handling in plperlu  ("Jasbinder Singh Bali" <jsbali@gmail.com>)
List 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 by date:

Previous
From: "hubert depesz lubaczewski"
Date:
Subject: Re: Practical question.
Next
From: Bertram Scharpf
Date:
Subject: Re: PgSql on Vista?