Re: PEAR::setErrorHandling conflicts with nextId() ?

From: Date: Thu, 30 Aug 2001 21:07:48 +0000
Subject: Re: PEAR::setErrorHandling conflicts with nextId() ?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1728@lists.php.net to get a copy of this message
On Thu, 30 Aug 2001, Piotr Roszatycki wrote: > On Thu, 30 Aug 2001, Tomas V.V.Cox wrote: > > > I've found $dbh->nextId() breaks setErrorHandling(). > > > This script should print error, but it doesn't. > > > > > $id = $dbh->nextId("service"); > > > > There were a bug here. It's corrected now in the last CVS version of > > PEAR.php. Please try again with it. > > I've updated PEAR from CVS and still $dbh->nextId disables error handling. > I use PostgreSQL database and AFAIK this method pushes and pops error > handling. Maybe the error is in pgsql.php file? IMHO it's better to use expectError() than pushErrorHandling() for the sequence code. I don't know if you agree Tomas? - Stig

« previous php.pear.dev (#1728) next »