function DatabaseReservedKeywordTestCase::testDeleteReservedWordTable

File

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

Class

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

Code

public function testDeleteReservedWordTable() {
    $delete = db_delete('virtual')->condition('function', 'Function value 1');
    $num_deleted = $delete->execute();
    $this->assertEqual($num_deleted, 1, "Deleted 1 record 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.