function DatabaseReservedKeywordTestCase::testSelectReservedWordTableAllFields

File

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

Class

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

Code

public function testSelectReservedWordTableAllFields() {
    $record = db_select('virtual')->fields('virtual')
        ->execute()
        ->fetchAssoc();
    $this->assertEqual($record['function'], 'Function value 1', 'Successful all_fields query from a table with a name and column which are reserved words.');
}

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