]> git.mjollnir.org Git - moodle.git/commitdiff
Concatenating NULLs with anything returns NULL
authorstronk7 <stronk7>
Sun, 30 Aug 2009 20:53:12 +0000 (20:53 +0000)
committerstronk7 <stronk7>
Sun, 30 Aug 2009 20:53:12 +0000 (20:53 +0000)
lib/dml/simpletest/testdml.php

index 056f77f466e2a7fc32a54f02b942194b129981c4..50d108f4c720fef54a8f9f32048d4d180f60f84d 100755 (executable)
@@ -1704,7 +1704,7 @@ class dml_test extends UnitTestCase {
         $this->assertEqual('123.45test', $DB->get_field_sql($sql, $params));
         // float, null and strings
         $params = array(123.45, null, 'test');
-        $this->assertEqual('123.45test', $DB->get_field_sql($sql, $params));
+        $this->assertNull($DB->get_field_sql($sql, $params)); // Concatenate NULL with anything result = NULL
 
         /// Testing fieldnames + values
         $table = $this->get_test_table();