]> git.mjollnir.org Git - moodle.git/commitdiff
Replaced XMLDB own implementation of the concat function to use
authorstronk7 <stronk7>
Tue, 26 Sep 2006 18:34:48 +0000 (18:34 +0000)
committerstronk7 <stronk7>
Tue, 26 Sep 2006 18:34:48 +0000 (18:34 +0000)
the new, ultra-cool, ADOdb based, concat_sql(). Thanks, Martin Langhoff!

lib/xmldb/classes/generators/XMLDBGenerator.class.php

index fccf3d52c0bca917890133df119b24d289b4d16a..03a797747adedc789485da3259317214a8e42ba0 100644 (file)
@@ -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);
     }
 
     /**