Merge branch 'w14_MDL-39019_m25_mssqldatatype' of git://github.com/skodak/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2013-04-09 02:01:04 +02:00
@@ -51,6 +51,15 @@ class mssql_native_moodle_recordset extends moodle_recordset {
}
$row = array_change_key_case($row, CASE_LOWER);
// Moodle expects everything from DB as strings.
foreach ($row as $k=>$v) {
if (is_null($v)) {
continue;
}
if (!is_string($v)) {
$row[$k] = (string)$v;
}
}
return $row;
}