function DatabaseReservedKeywordTestCase::testSelectReservedWordAliasCount
File
-
modules/
simpletest/ tests/ database_test.test, line 4565
Class
- DatabaseReservedKeywordTestCase
- Test reserved keyword handling (introduced for MySQL 8+)
Code
public function testSelectReservedWordAliasCount() {
$rows = db_select('test', 'character')->countQuery()
->execute()
->fetchField();
$this->assertEqual($rows, 4, 'Successful count query using an alias which is a reserved word.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.