Permalink
Browse files

MDL-39022 fix MSSQL concat type conversion

  • Loading branch information...
1 parent f3da6ac commit 7cfccbb14884192125d7210c747371c34208a97c @skodak skodak committed with stronk7 Apr 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dml/mssql_native_moodle_database.php
View
2 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 === '') {

0 comments on commit 7cfccbb

Please sign in to comment.