Minor refactorings + fix for dbo mysqli related to previous commit

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8261 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
DarkAngelBGE 2009-07-28 20:08:24 +00:00
parent f88cc56cfe
commit f710ae7fbe

View file

@ -212,11 +212,14 @@ class DboMysqli extends DboMysqlBase {
switch ($column) {
case 'boolean':
$data = $this->boolean((bool)$data);
return $this->boolean((bool)$data);
break;
case 'integer' :
case 'float' :
case null :
if ($data === '') {
return 'NULL';
}
if ((is_int($data) || is_float($data) || $data === '0') || (
is_numeric($data) && strpos($data, ',') === false &&
$data[0] != '0' && strpos($data, 'e') === false)) {