From c7e0e563ae1a6840929a032f8b7891d66eb7d26e Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 12 Sep 2017 18:39:17 +0000 Subject: [PATCH] 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 --- dblayeroo.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dblayeroo.php b/dblayeroo.php index 3e1e349..ad24446 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -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) {