dblayeroo: DISTINCT is now allowed in the typing of the fields
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3943 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -2850,10 +2850,10 @@ class dblayeroo
|
||||
else
|
||||
{
|
||||
$name = $columns[$colNb];
|
||||
$name = str_replace ("DISTINCT ", "", $name);
|
||||
$pos = strpos ($columns[$colNb], " AS ");
|
||||
if ($pos)
|
||||
$name = substr ($columns[$colNb], 0, $pos);
|
||||
$name = str_replace ("DISTINCT ", "", $name);
|
||||
if (strtolower ($fieldsAll[$name][0]) ===
|
||||
"integer")
|
||||
$val = intval ($val);
|
||||
|
||||
Reference in New Issue
Block a user