dblayeroo: the post execute select must not convert a NULL to INT if a column definition is INTEGER
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4004 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -532,7 +532,7 @@ class test_dblayeroo_{ENGINE} extends PHPUnit_Framework_TestCase
|
||||
'groupedoo.object' => 'object',
|
||||
'groupedoo.where' => 'where',
|
||||
'groupedoo.with space' => NULL,
|
||||
'usersoo.uid' => 0,
|
||||
'usersoo.uid' => NULL,
|
||||
'usersoo.gecos' => NULL,
|
||||
'usersoo.password' => NULL,
|
||||
'usersoo.group' => NULL,
|
||||
|
||||
@@ -2882,8 +2882,8 @@ class dblayeroo
|
||||
if ($pos)
|
||||
$name = substr ($columns[$colNb], 0, $pos);
|
||||
$name = str_replace ("DISTINCT ", "", $name);
|
||||
if (strtolower ($fieldsAll[$name][0]) ===
|
||||
"integer")
|
||||
if (strtolower ($fieldsAll[$name][0]) === "integer" &&
|
||||
$val !== null)
|
||||
$val = intval ($val);
|
||||
}
|
||||
if (($pos = strpos ($columns[$colNb], " AS ".$this->sep)) !== false)
|
||||
|
||||
Reference in New Issue
Block a user