Re: DBD::pg error trapping?

From: David Fetter <david(at)fetter(dot)org>
To: SF Postgres <sfpug(at)postgresql(dot)org>
Subject: Re: DBD::pg error trapping?
Date: 2003-02-26 20:10:15
Message-ID: 20030226201015.GH21541@fetter.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?

I'm not Aditya, but I thought pg_connect was a php method. If that's
the case, you may want to consult
<http://www.php.net/manual/en/ref.pgsql.php>, especially the part
about options.

HTH :)

Cheers,
D
--
David Fetter david(at)fetter(dot)org http://fetter.org/
phone: +1 510 893 6100 cell: +1 415 235 3778

In response to

Responses

Browse sfpug by date

  From Date Subject
Next Message Aditya 2003-02-26 20:13:35 Re: DBD::pg error trapping?
Previous Message Josh Berkus 2003-02-26 20:08:58 Re: DBD::pg error trapping?