cvs: pear /MDB2/MDB2/Driver/Datatype Common.php
| From: | Lukas Smith | Date: | Sat, 10 Jun 2006 09:44:03 +0000 |
| Subject: | cvs: pear /MDB2/MDB2/Driver/Datatype Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-40600@lists.php.net to get a copy of this message | ||
lsmith Sat Jun 10 09:44:03 2006 UTC
Modified files:
/pear/MDB2/MDB2/Driver/Datatype Common.php
Log:
- add datatype_map support to checkResultTypes()
http://cvs.php.net/viewcvs.cgi/pear/MDB2/MDB2/Driver/Datatype/Common.php?r1=1.79&r2=1.80&diff_format=u
Index: pear/MDB2/MDB2/Driver/Datatype/Common.php
diff -u pear/MDB2/MDB2/Driver/Datatype/Common.php:1.79
pear/MDB2/MDB2/Driver/Datatype/Common.php:1.80
--- pear/MDB2/MDB2/Driver/Datatype/Common.php:1.79 Fri Jun 9 11:17:42 2006
+++ pear/MDB2/MDB2/Driver/Datatype/Common.php Sat Jun 10 09:44:03 2006
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.79 2006/06/09 11:17:42 lsmith Exp $
+// $Id: Common.php,v 1.80 2006/06/10 09:44:03 lsmith Exp $
require_once 'MDB2/LOB.php';
@@ -112,9 +112,10 @@
if (PEAR::isError($db)) {
return $db;
}
-
- return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
- 'checkResultTypes: ' . $type . ' for '. $key .' is not
a supported column type');
+ if (empty($db->options['datatype_map'][$type])) {
+ return $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,
+ 'checkResultTypes: ' . $type . ' for '. $key .' is
not a supported column type');
+ }
}
}
return $types;