dblayeroo: Manage correctely the DISTINCT type of fields

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3942 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-09-12 14:17:56 +00:00
parent efe31391b5
commit 33e85225ed

View File

@@ -2850,6 +2850,7 @@ class dblayeroo
else
{
$name = $columns[$colNb];
$name = str_replace ("DISTINCT ", "", $name);
$pos = strpos ($columns[$colNb], " AS ");
if ($pos)
$name = substr ($columns[$colNb], 0, $pos);