Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-39028 fix sqlsrv concat type conversion

  • Loading branch information...
commit cfbdf4d2a0902c88b72ebdf9bb86760104cbfd62 1 parent 239fb7a
@skodak skodak authored stronk7 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/dml/sqlsrv_native_moodle_database.php
View
2  lib/dml/sqlsrv_native_moodle_database.php
@@ -1241,7 +1241,7 @@ 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);
Please sign in to comment.
Something went wrong with that request. Please try again.