Re: DBD::pg error trapping?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Aditya <aditya(at)grot(dot)org>, sfpug(at)postgresql(dot)org
Subject: Re: DBD::pg error trapping?
Date: 2003-02-26 19:50:17
Message-ID: 200302261150.17580.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: sfpug

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?

--
Josh Berkus
josh(at)agliodbs(dot)com
Aglio Database Solutions
San Francisco

In response to

Responses

Browse sfpug by date

  From Date Subject
Next Message Aditya 2003-02-26 19:58:36 Re: DBD::pg error trapping?
Previous Message Josh Berkus 2003-02-26 19:38:48 DBD::pg error trapping?