MDL-14679 dml/native_mysqli fixed sql concat

This commit is contained in:
skodak 2008-10-25 18:40:35 +00:00
parent 2aeb3bcbdb
commit d5d0890c30

View File

@ -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)";
}