MDB patch
| From: | Paul Cooper | Date: | Mon, 17 Jun 2002 15:06:22 +0000 |
| Subject: | MDB patch | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-7131@lists.php.net to get a copy of this message | ||
in the fetch* functions the input parameter $result (a result
identifier) is tested with
if (!$result) { ... }
However $db->query() will return an mdb_error object when the query
fails, so the test should be MDB::isError($result). See attached diff,
Paul
--
-----------------------------------------------------------------
Paul Cooper | Tel: 0121 331 7858
Senior Programmer and Database Engineer | Fax: 0121 331 7859
UCEcom | mailto:pgc@ucecom.com
University of Central England | http://www.ucecom.com
Birmingham, B4 7DX |
-----------------------------------------------------------------
Attachment: [text/x-patch] common.diff
Attachment: [text/x-patch] common.diff