DatabaseSelectTestCase.testSimpleComment tries to assert that the result of a dynamic query is exactly a litteral chain.

$expected = "/* Testing query comments */ SELECT test.name AS name, test.age AS age\nFROM \n{test} test";
$this->assertEqual($query, $expected, t('The flattened query contains the comment string.'));

Each database driver can override the Select query builder, so we should not test something literally like this.

Comments

damien tournoud’s picture

Status: Active » Needs review
StatusFileSize
new1.02 KB

Simple patch.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.