Re: cvs: pear /DB_DataObject DataObject.php
| From: | Alan Knowles | Date: | Tue, 24 Jan 2006 10:22:57 +0000 |
| Subject: | Re: cvs: pear /DB_DataObject DataObject.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-37734@lists.php.net to get a copy of this message | ||
@@ -2372,7 +2372,11 @@
$this->debug(serialize($result), 'RESULT',5);
}
if (method_exists($result, 'numrows')) {
- $DB->expectError(DB_ERROR_UNSUPPORTED);
+ if ($_DB_driver == 'DB') {
+ $DB->expectError(DB_ERROR_UNSUPPORTED);
+ } else {
+ $DB->expectError(MDB2_ERROR_UNSUPPORTED);
+ }
Can you fix the whitespace (i think it's tabs) here.
Thanks
Alan
$this->N = $result->numrows();
if (is_a($this->N,'PEAR_Error')) {
$this->N = true;