From 48eac3132879c25da998b8fe78f5804589ec0642 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 26 Sep 2006 18:34:48 +0000 Subject: [PATCH] Replaced XMLDB own implementation of the concat function to use the new, ultra-cool, ADOdb based, concat_sql(). Thanks, Martin Langhoff! --- lib/xmldb/classes/generators/XMLDBGenerator.class.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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); } /** -- 2.39.5