change behavior db:getRow ?
| From: | mailling at bigfoot dot com | Date: | Fri, 03 Aug 2001 19:24:37 +0000 |
| Subject: | change behavior db:getRow ? | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-1270@lists.php.net to get a copy of this message | ||
I am using the pear-cvs from yersterday
Sometimes, I do that:
SELECT cp.child child, cp.parent parent FROM categoryRel cp, category t, category told WHERE t.groupid=1 AND t.name='name C' AND t.sery=0 AND t.id=cp.child AND cp.parent=told.id AND t.groupid=told.groupid AND told.name='name A'
for the query, and with getRow($query), I got this:
Array
Key: child(string) 94 (string)
Key: parent(string) 92 (string)
But now, I got this:
Array
Key: 0 94 (string)
Key: 1 92 (string)
So I have to change getRow($query) by getRow($query, array(), DB_FETCHMODE_ASSOC)
Did I make a mistake, or the basic behavior changed?
Thank you
Stephan