mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-61993 profilefield_checkbox: take rid of oracle reserved word
This commit is contained in:
parent
d8844b3f8c
commit
c4a5c8440a
1 changed files with 7 additions and 7 deletions
|
@ -65,13 +65,13 @@ class provider implements
|
|||
*/
|
||||
public static function get_contexts_for_userid(int $userid) : contextlist {
|
||||
$sql = "SELECT ctx.id
|
||||
FROM {user_info_data} uid
|
||||
FROM {user_info_data} uda
|
||||
JOIN {user_info_field} uif
|
||||
ON uid.fieldid = uif.id
|
||||
ON uda.fieldid = uif.id
|
||||
JOIN {context} ctx
|
||||
ON ctx.instanceid = uid.userid
|
||||
ON ctx.instanceid = uda.userid
|
||||
AND ctx.contextlevel = :contextlevel
|
||||
WHERE uid.userid = :userid
|
||||
WHERE uda.userid = :userid
|
||||
AND uif.datatype = :datatype";
|
||||
$params = [
|
||||
'userid' => $userid,
|
||||
|
@ -151,10 +151,10 @@ class provider implements
|
|||
global $DB;
|
||||
|
||||
$sql = "SELECT *
|
||||
FROM {user_info_data} uid
|
||||
FROM {user_info_data} uda
|
||||
JOIN {user_info_field} uif
|
||||
ON uid.fieldid = uif.id
|
||||
WHERE uid.userid = :userid
|
||||
ON uda.fieldid = uif.id
|
||||
WHERE uda.userid = :userid
|
||||
AND uif.datatype = :datatype";
|
||||
$params = [
|
||||
'userid' => $userid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue