Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-39022 fix MSSQL concat type conversion

  • Loading branch information...
commit 7cfccbb14884192125d7210c747371c34208a97c 1 parent f3da6ac
Petr Skoda skodak authored stronk7 committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/dml/mssql_native_moodle_database.php
2  lib/dml/mssql_native_moodle_database.php
@@ -1176,7 +1176,7 @@ public function sql_like($fieldname, $param, $casesensitive = true, $accentsensi
1176 1176 public function sql_concat() {
1177 1177 $arr = func_get_args();
1178 1178 foreach ($arr as $key => $ele) {
1179   - $arr[$key] = ' CAST(' . $ele . ' AS VARCHAR(255)) ';
  1179 + $arr[$key] = ' CAST(' . $ele . ' AS NVARCHAR(255)) ';
1180 1180 }
1181 1181 $s = implode(' + ', $arr);
1182 1182 if ($s === '') {

0 comments on commit 7cfccbb

Please sign in to comment.
Something went wrong with that request. Please try again.