Merge branch 'w14_MDL-39022_m25_mssqlconcat' of git://github.com/skodak/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2013-04-09 01:53:57 +02:00
+1 -1
View File
@@ -1176,7 +1176,7 @@ class mssql_native_moodle_database extends moodle_database {
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 === '') {