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:
2017-09-12 14:31:01 +00:00
parent 33e85225ed
commit 199d8bf710

View File

@@ -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);