Re: The PEAR $db->fetchRow Blues (ref: DB_mysql...

From: Date: Fri, 16 Feb 2001 18:20:30 +0000
Subject: Re: The PEAR $db->fetchRow Blues (ref: DB_mysql...
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-1367@lists.php.net to get a copy of this message
Chuck Hagenbuch wrote: > > Quoting "Stig S. Bakken" <ssb@fast.no>: > > > I agree, this was also the intended behaviour. Chuck is of course right > > in that it should be consistent. > > Okay, I've gone ahead and done this - hope you don't mind. Great, thanks. > In my defense, it > seems that every backend except for mysql and pgsql was returning an error at > the end of the result set. =) That is a defense, but after all, reaching the end of a result set is a normal event. It's supposed to happen. The scope of PEAR errors today is limited to events that should not occur (imagine what will happen if you're running with a "print and die" default error handler). Anyway, I'll add some regression tests for this behaviour so we can verify that it is consistent in the different backends. - Stig

« previous php.pear (#1367) next »