Re: MDB transactions in pgsql driver
| From: | Jeroen Houben | 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:
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? JeroenFrom: Jeroen Houben [mailto:jeroen@terena.nl] Sent: Wednesday, May 28, 2003 1:47 PMbeingSo 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 iscalled twice, once with a valid PG result resource, but the secondtime itcalls the method where $result is a string 'Coordinators' which is intehfirst 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 :