From: stronk7 Date: Sun, 30 Aug 2009 20:53:12 +0000 (+0000) Subject: Concatenating NULLs with anything returns NULL X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=38d0db9f31692a19257f78930bcfb240f12aa27c;p=moodle.git Concatenating NULLs with anything returns NULL --- diff --git a/lib/dml/simpletest/testdml.php b/lib/dml/simpletest/testdml.php index 056f77f466..50d108f4c7 100755 --- a/lib/dml/simpletest/testdml.php +++ b/lib/dml/simpletest/testdml.php @@ -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();