function DatabaseReservedKeywordTestCase::testUpdateReservedWordTable
File
-
modules/
simpletest/ tests/ database_test.test, line 4613
Class
- DatabaseReservedKeywordTestCase
- Test reserved keyword handling (introduced for MySQL 8+)
Code
function testUpdateReservedWordTable() {
$num_updated = db_update('virtual')->fields(array(
'function' => 'Updated function',
))
->execute();
$this->assertIdentical($num_updated, 1, 'Updated 1 record in 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.