MDL-74656 reportbuilder: cast fields to char on mssql during concat.
This commit is contained in:
@@ -96,6 +96,9 @@ abstract class base {
|
||||
|
||||
// We need to ensure all values are char (this ought to be done in the DML drivers, see MDL-72184).
|
||||
switch ($DB->get_dbfamily()) {
|
||||
case 'mssql' :
|
||||
$sqlfield = $DB->sql_concat("''", $sqlfield);
|
||||
break;
|
||||
case 'postgres' :
|
||||
$sqlfield = "CAST({$sqlfield} AS VARCHAR)";
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user