Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-39022 fix MSSQL concat type conversion
  • Loading branch information
skodak authored and stronk7 committed Apr 8, 2013
1 parent f3da6ac commit 7cfccbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dml/mssql_native_moodle_database.php
Expand Up @@ -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 === '') {
Expand Down

0 comments on commit 7cfccbb

Please sign in to comment.