[dev] problem w. imp-login: get prefs from db...

Jon Parise jon@csh.rit.edu
Sun, 17 Jun 2001 17:43:57 -0400


On Sun, Jun 17, 2001 at 11:16:13PM +0200, Alexander Knauer wrote:

> > > I get an error "invalid cursor" in the 
> > database-function 
> > > "fetchRow" in the PHP-Database functions
> > > (file php/DB/ibase.php). 
> > >  .....
> > 
> > That's probably your problem.  It sounds like something is 
> > broken with PEAR.
> 
> Found the problem, it's a bug in the PEAR-database-file "ibase.php",
> when autocommit is turned on
> it commits EVERY query, but it should only commit data-manipulating
> querys, because after committing
> a SELECT-query the resource-identifier is not valid anymore (therefore
> "cursor unknown" error) for the following operations like fetchRow which
> need a valid resource-identifier...

If you can produce a fix, send me a patch, and I'll commit to the
PEAR cvs.

-- 
Jon Parise (jon@csh.rit.edu)  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member