Re: MDB transactions in pgsql driver

From: Date: Mon, 02 Jun 2003 12:05:03 +0000
Subject: Re: MDB transactions in pgsql driver
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16898@lists.php.net to get a copy of this message
Lukas Smith wrote:
From: Jeroen Houben [mailto:jeroen@terena.nl] Sent: Wednesday, May 28, 2003 1:47 PM
So the errors you were receiving happend in this code fragment?
     
Yes. in: $groups = $db->getAssoc('SELECT group_id, name FROM groups'); To be exact. I was debugging and saw some weird results. The method FetchInto is
being
called twice, once with a valid PG result resource, but the second
time it
calls the method where $result is a string 'Coordinators' which is in
teh
first row inside the groups table in the DB.
Do you have autofree on or off? Using Mdb 1.1.3RCI I set it to "on" and one error disappeared but I still have :
Notice: Undefined index: Coordinators in /usr/local/share/php/pear/MDB/pgsql.php on line 1267 Warning: pg_numrows(): supplied argument is not a valid PostgreSQL result resource in /usr/local/share/php/pear/MDB/pgsql.php on line 799 Any ideas? Jeroen

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