MDL-39028 fix sqlsrv concat type conversion

This commit is contained in:
Petr Škoda
2013-04-09 02:18:34 +02:00
committed by Eloy Lafuente (stronk7)
parent 239fb7ac41
commit cfbdf4d2a0
+1 -1
View File
@@ -1241,7 +1241,7 @@ class sqlsrv_native_moodle_database extends moodle_database {
$arr = func_get_args();
foreach ($arr as $key => $ele) {
$arr[$key] = ' CAST('.$ele.' AS VARCHAR(255)) ';
$arr[$key] = ' CAST('.$ele.' AS NVARCHAR(255)) ';
}
$s = implode(' + ', $arr);