function DatabaseReservedKeywordTestCase::testSelectReservedWordTableCount

File

modules/simpletest/tests/database_test.test, line 4541

Class

DatabaseReservedKeywordTestCase
Test reserved keyword handling (introduced for MySQL 8+)

Code

public function testSelectReservedWordTableCount() {
    $rows = db_select('virtual')->countQuery()
        ->execute()
        ->fetchField();
    $this->assertEqual($rows, 1, 'Successful count query on a table with a reserved name.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.