Skip to content

Commit

Permalink
MDL-62167 core_badges: Remove usage of a reserved keyword of Oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
FMCorz authored and stronk7 committed May 1, 2018
1 parent 91161a6 commit 048b266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions badges/classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,10 @@ public static function export_user_data(approved_contextlist $contextlist) {
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,
Expand Down

0 comments on commit 048b266

Please sign in to comment.