Fixing bug in DboMysql::value()

This commit is contained in:
José Lorenzo Rodríguez 2010-10-16 14:01:01 -04:30
parent 88a2fb5058
commit d83c95cf46
2 changed files with 3 additions and 4 deletions

View file

@ -231,7 +231,7 @@ class DboMysql extends DboSource {
return $parent;
}
if ($data === null || (is_array($data) && empty($data))) {
return $this->_connection->quote($data, PDO::PARAM_NULL);
return 'NULL';
}
if ($data === '' && $column !== 'integer' && $column !== 'float' && $column !== 'boolean') {
return $this->_connection->quote($data, PDO::PARAM_STR);