Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

sfpug by date

Next:From: AdityaDate: 2003-02-26 19:58:36
Subject: Re: DBD::pg error trapping?
Previous:From: Josh BerkusDate: 2003-02-26 19:38:48
Subject: DBD::pg error trapping?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group