function DatabaseReservedKeywordTestCase::testUpdateReservedWordTable in Drupal 7        
                          
                  
                        
File
 
   - modules/simpletest/tests/database_test.test, line 4374
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.');
}