function QueryTest::testQuotingIdentifiers
Tests quoting identifiers in queries.
File
- 
              core/
tests/ Drupal/ KernelTests/ Core/ Database/ QueryTest.php, line 163  
Class
- QueryTest
 - Tests Drupal's extended prepared statement syntax..
 
Namespace
Drupal\KernelTests\Core\DatabaseCode
public function testQuotingIdentifiers() : void {
  // Use the table named an ANSI SQL reserved word with a column that is as
  // well.
  $result = $this->connection
    ->query('SELECT [update] FROM {select}')
    ->fetchObject();
  $this->assertEquals('Update value 1', $result->update);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.