Re: exception handling in plperlu

From: "hubert depesz lubaczewski" <depesz(at)gmail(dot)com>
To: "Jasbinder Singh Bali" <jsbali(at)gmail(dot)com>
Cc: "Martijn van Oosterhout" <kleptog(at)svana(dot)org>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: exception handling in plperlu
Date: 2007-03-17 04:43:28
Message-ID: 9e4684ce0703162143g7f8d0ff4r45ac483806cf8c2b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 3/16/07, Jasbinder Singh Bali <jsbali(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bertram Scharpf 2007-03-17 05:49:23 Re: PgSql on Vista?
Previous Message hubert depesz lubaczewski 2007-03-17 04:39:21 Re: Practical question.