From 7cfccbb14884192125d7210c747371c34208a97c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Mon, 8 Apr 2013 10:19:51 +0200 Subject: [PATCH] MDL-39022 fix MSSQL concat type conversion --- lib/dml/mssql_native_moodle_database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dml/mssql_native_moodle_database.php b/lib/dml/mssql_native_moodle_database.php index 323a2fe3c57b9..db1e00d0dbe63 100644 --- a/lib/dml/mssql_native_moodle_database.php +++ b/lib/dml/mssql_native_moodle_database.php @@ -1176,7 +1176,7 @@ public function sql_like($fieldname, $param, $casesensitive = true, $accentsensi public function sql_concat() { $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); if ($s === '') {