MDL-62167 core_badges: Remove usage of a reserved keyword of Oracle

This commit is contained in:
Frédéric Massart 2018-05-01 20:02:09 +08:00 committed by Eloy Lafuente (stronk7)
parent 91161a6325
commit 048b266f14

View File

@ -299,10 +299,10 @@ class provider implements
if (in_array($userid, $contexts[CONTEXT_USER])) {
// Export the badges.
$uid = $DB->sql_concat_join("'-'", ['b.id', 'COALESCE(bc.id, 0)', 'COALESCE(bi.id, 0)',
$uniqueid = $DB->sql_concat_join("'-'", ['b.id', 'COALESCE(bc.id, 0)', 'COALESCE(bi.id, 0)',
'COALESCE(bma.id, 0)', 'COALESCE(bcm.id, 0)']);
$sql = "
SELECT $uid AS uid, b.id,
SELECT $uniqueid AS uniqueid, b.id,
bi.id AS biid, bi.dateissued, bi.dateexpire, bi.uniquehash,
bma.id AS bmaid, bma.datemet, bma.issuerid,
bcm.id AS bcmid,