dblayeroo: Manage correctely the DISTINCT select (remove the sep correctely)

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3944 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-09-12 18:39:17 +00:00
parent 199d8bf710
commit c7e0e563ae

View File

@@ -2814,6 +2814,8 @@ class dblayeroo
$this->sep.".", "", $col); $this->sep.".", "", $col);
if ($col[0] === $this->sep) if ($col[0] === $this->sep)
$col = substr ($col, 1); $col = substr ($col, 1);
elseif (strpos ($col, "DISTINCT ".$this->sep) === 0)
$col = "DISTINCT ".substr ($col, 10);
if (substr ($col, -1) === $this->sep && if (substr ($col, -1) === $this->sep &&
strpos ($col, " AS ".$this->sep) === false) strpos ($col, " AS ".$this->sep) === false)
{ {