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:
@@ -2814,6 +2814,8 @@ class dblayeroo
|
||||
$this->sep.".", "", $col);
|
||||
if ($col[0] === $this->sep)
|
||||
$col = substr ($col, 1);
|
||||
elseif (strpos ($col, "DISTINCT ".$this->sep) === 0)
|
||||
$col = "DISTINCT ".substr ($col, 10);
|
||||
if (substr ($col, -1) === $this->sep &&
|
||||
strpos ($col, " AS ".$this->sep) === false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user