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

[email protected] ("Stig S. Bakken")
Newsgroups php.pear
Organization Fast Search & Transfer
Message-ID <[email protected]>
Chuck Hagenbuch wrote:
> 
> Quoting "Stig S. Bakken" <[email protected]>:
> 
> > 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.