From: skodak Date: Sat, 25 Oct 2008 18:40:35 +0000 (+0000) Subject: MDL-14679 dml/native_mysqli fixed sql concat X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d5d0890c309266b9f99cd0a6f7cb01a367052112;p=moodle.git MDL-14679 dml/native_mysqli fixed sql concat --- diff --git a/lib/dml/mysqli_native_moodle_database.php b/lib/dml/mysqli_native_moodle_database.php index 1acb4b6bfa..b21f95c823 100644 --- a/lib/dml/mysqli_native_moodle_database.php +++ b/lib/dml/mysqli_native_moodle_database.php @@ -853,7 +853,7 @@ class mysqli_native_moodle_database extends moodle_database { $arr = func_get_args(); $s = implode(',', $arr); if ($s === '') { - //TODO: error + return "''"; } return "CONCAT($s)"; } @@ -864,7 +864,7 @@ class mysqli_native_moodle_database extends moodle_database { } $s = implode(',', $elements); if ($s === '') { - //TODO: error + return "''"; } return "CONCAT ($s)"; }