From 60ca7d5b078b85c567ee09390d5387903ccfc7c3 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Wed, 23 Oct 2013 11:58:48 +0800 Subject: [PATCH] MDL-41339 Tags - use uppercase for SQL keywords (AS) --- tag/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tag/lib.php b/tag/lib.php index 15f7a1ae456..47e8617dd22 100644 --- a/tag/lib.php +++ b/tag/lib.php @@ -324,7 +324,7 @@ function tag_get_tags($record_type, $record_id, $type=null, $userid=0) { $params['userid'] = $userid; } - $sql = "SELECT ti.id as taginstanceid, tg.id, tg.tagtype, tg.name, tg.rawname, tg.flag, ti.ordering + $sql = "SELECT ti.id AS taginstanceid, tg.id, tg.tagtype, tg.name, tg.rawname, tg.flag, ti.ordering FROM {tag_instance} ti JOIN {tag} tg ON tg.id = ti.tagid WHERE ti.itemtype = :recordtype AND ti.itemid = :recordid $u $sql_type