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

Alexander Knauer dbadmin@avenet.stw.uni-erlangen.de
Sun, 17 Jun 2001 23:16:13 +0200



> -----Ursprungliche Nachricht-----
> Von: Jon Parise [mailto:jon@csh.rit.edu] 
> Gesendet: Sonntag, 17. Juni 2001 17:12
> An: dev@lists.horde.org
> Betreff: Re: [dev] problem w. imp-login: get prefs from db...
> 
> 
> On Sun, Jun 17, 2001 at 12:34:49PM +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...