From: stronk7 Date: Tue, 26 Sep 2006 18:34:48 +0000 (+0000) Subject: Replaced XMLDB own implementation of the concat function to use X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=48eac3132879c25da998b8fe78f5804589ec0642;p=moodle.git Replaced XMLDB own implementation of the concat function to use the new, ultra-cool, ADOdb based, concat_sql(). Thanks, Martin Langhoff! --- diff --git a/lib/xmldb/classes/generators/XMLDBGenerator.class.php b/lib/xmldb/classes/generators/XMLDBGenerator.class.php index fccf3d52c0..03a797747a 100644 --- a/lib/xmldb/classes/generators/XMLDBGenerator.class.php +++ b/lib/xmldb/classes/generators/XMLDBGenerator.class.php @@ -761,11 +761,8 @@ class XMLDBgenerator { } } - if ($this->concat_character) { - return implode (' ' . $this->concat_character . ' ', $elements); - } else { - return 'CONCAT(' . implode(', ', $elements) . ')'; - } + /// Now call the standard sql_concat() DML function + return call_user_func_array('sql_concat', $elements); } /**