mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 03:22:39 +00:00
Fixing bug in DboMysql::value()
This commit is contained in:
parent
88a2fb5058
commit
d83c95cf46
2 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue