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:
@@ -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