Skip to content

Commit

Permalink
Merge branch 'MDL-74656-400-fix' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
 into MOODLE_400_STABLE
  • Loading branch information
junpataleta committed Jul 27, 2022
2 parents 0f62627 + 321a8cb commit 306a4e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions reportbuilder/classes/local/aggregation/base.php
Expand Up @@ -96,6 +96,9 @@ final protected static function get_column_fields_concat(

// 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;
Expand Down

0 comments on commit 306a4e0

Please sign in to comment.