Skip to content
Permalink
Browse files

MDL-41339 Tags - use uppercase for SQL keywords (AS)

  • Loading branch information...
damyon committed Oct 23, 2013
1 parent 2840c2a commit 75f39a09460ade65f61b01f7cf397656c5019173
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 75f39a0

Please sign in to comment.
You can’t perform that action at this time.