From 56975f22d4dd371b50826ed293d0bca0ce410d4a Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 15 Feb 2016 15:08:48 +0000 Subject: [PATCH] authzgroups : the "right" alias is now between double-quotes to be compatible with MySQL git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2454 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- authzgroups.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/authzgroups.php b/authzgroups.php index ba94be5..8c64d13 100644 --- a/authzgroups.php +++ b/authzgroups.php @@ -43,7 +43,7 @@ class authzgroups } else { - $req = "SELECT o.object,MAX(r.right) AS right + $req = "SELECT o.object,MAX(r.right) AS \"right\" FROM ".$this->tableprefix."authzright AS r, ".$this->tableprefix."authzobject AS o, ".$this->tableprefix."authzgroup AS g, @@ -56,6 +56,7 @@ class authzgroups } if ($this->debug) echo "$req\n"; + echo "$req\n"; try { $st = $this->dbObject->prepare ($req);