getRow() API
| From: | Andrei Zmievski | Date: | Fri, 18 May 2001 16:09:26 +0000 |
| Subject: | getRow() API | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-394@lists.php.net to get a copy of this message | ||
I feel that the last two parameters to DB::getRow() should be reversed.
Currently, it's:
getRow($query, $fetchmode = DB_FETCHMODE_DEFAULT, $params = array());
You would most likely use getRow() with non-empty params much more often
than specifying a $fetchmode. Most people would probably just use
setFetchMode() to set the default mode and forget about it. I think we
should change it to:
getRow($query, $params = array(), $fetchmode = DB_FETCHMODE_DEFAULT);
-Andrei
It is commonly the case with technologies that you can get
the best insight about how they work by watching them fail.
-- Neal Stephenson