fix two bugs in MDB2, patches committed upstream https://pear.php.net/bugs/bug.php?id=19582

This commit is contained in:
Jörn Friedrich Dreyer 2012-08-27 13:59:59 +02:00
parent f105e9b454
commit d91bd37bd7
2 changed files with 2 additions and 2 deletions

View file

@ -1412,7 +1412,7 @@ class MDB2_Driver_Datatype_Common extends MDB2_Module_Common
if (PEAR::isError($db)) { if (PEAR::isError($db)) {
return $db; return $db;
} }
if (isset($db->function) && is_object($this->function) && is_a($db->function, 'MDB2_Driver_Function_Common')) { if (isset($db->function) && is_object($db->function) && is_a($db->function, 'MDB2_Driver_Function_Common')) {
return $db->function->now('timestamp'); return $db->function->now('timestamp');
} }
return 'CURRENT_TIMESTAMP'; return 'CURRENT_TIMESTAMP';

View file

@ -80,7 +80,7 @@ class MDB2_Driver_mysql extends MDB2_Driver_Common
protected $start_transaction = false; protected $start_transaction = false;
protected $varchar_max_length = 255; public $varchar_max_length = 255;
// }}} // }}}
// {{{ constructor // {{{ constructor