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