Skip to content

Commit

Permalink
MDL-41339 Tags - use uppercase for SQL keywords (AS)
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Oct 23, 2013
1 parent 549ce3f commit f45d62e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tag/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f45d62e

Please sign in to comment.