mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-14679 dml/native_mysqli fixed sql concat
This commit is contained in:
parent
2aeb3bcbdb
commit
d5d0890c30
@ -853,7 +853,7 @@ class mysqli_native_moodle_database extends moodle_database {
|
||||
$arr = func_get_args();
|
||||
$s = implode(',', $arr);
|
||||
if ($s === '') {
|
||||
//TODO: error
|
||||
return "''";
|
||||
}
|
||||
return "CONCAT($s)";
|
||||
}
|
||||
@ -864,7 +864,7 @@ class mysqli_native_moodle_database extends moodle_database {
|
||||
}
|
||||
$s = implode(',', $elements);
|
||||
if ($s === '') {
|
||||
//TODO: error
|
||||
return "''";
|
||||
}
|
||||
return "CONCAT ($s)";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user