Commit cc14813f authored by Robert Lyon's avatar Robert Lyon Committed by Cecilia Vela Gurovic
Browse files

Bug 1796044: making 'group' alias in quotes



Mysql complains on it being a reserved word

behatnotneeded

Change-Id: I9366f8fe18fcc60a6b187150d34e996d9c18c256
Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 5841556e)
parent 5a2737c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1111,7 +1111,7 @@ class PluginSearchInternal extends PluginSearch {
            WHERE c.owner = ? " . $collectionwhere . $collectionfilter . ")
           UNION
           (SELECT b.id, b.title, NULL AS description, 'blocktype' AS type, b.blocktype, NULL AS ctime,
                NULL AS owner, NULL AS group, NULL AS institution, NULL AS urlid
                NULL AS owner, NULL AS \"group\", NULL AS institution, NULL AS urlid
            FROM {block_instance} b
            JOIN {tag} bt ON (bt.resourcetype = 'blocktype' AND bt.resourceid = b.id" . $typecast . ") " . $blocktypejoin . "
            WHERE bt.ownertype = 'user' AND bt.ownerid = ?" . $blocktypewhere . $blocktypefilter . ")