Re: DBD::pg error trapping?

From: Aditya <aditya(at)grot(dot)org>
To: sfpug(at)postgresql(dot)org
Subject: Re: DBD::pg error trapping?
Date: 2003-02-26 20:13:35
Message-ID: 20030226201335.GA95113@mighty.grot.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: sfpug

On Wed, Feb 26, 2003 at 11:50:17AM -0800, Josh Berkus wrote:
> Aditya,
>
> > my($dbh) = DBI->connect($data_source, $user, $dbpassword,
> > {RaiseError => 0} #depends on whether you check errstr
> > ) || die "couldn't call $data_source: $DBI::errstr\n";
> > $dbh->{ChopBlanks} = 1;
> > $dbh->{AutoCommit} = 1;
> > $dbh->{RaiseError} = 0;
> > $dbh->{PrintError} = 0;
> etc.
>
> Thanks! Does this work with pg_connect as well?

Isn't pg_connect part of a PHP package? In any case, I haven't used
pg_connect, so I won't comment...

Adi

In response to

Browse sfpug by date

  From Date Subject
Next Message Josh Berkus 2003-02-26 20:55:09 Re: DBD::pg error trapping?
Previous Message David Fetter 2003-02-26 20:10:15 Re: DBD::pg error trapping?