public function Insert::__toString in Drupal driver for SQL Server and SQL Azure 3.0.x
Same name and namespace in other branches
- 8.2 drivers/lib/Drupal/Driver/Database/sqlsrv/Insert.php \Drupal\Driver\Database\sqlsrv\Insert::__toString()
- 8 drivers/lib/Drupal/Driver/Database/sqlsrv/Insert.php \Drupal\Driver\Database\sqlsrv\Insert::__toString()
Implements PHP magic __toString method to convert the query to a string.
Return value
string The prepared statement.
Overrides Insert::__toString
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ Insert.php, line 183
Class
- Insert
- Sql Server implementation of \Drupal\Core\Database\Query\Insert.
Namespace
Drupal\Driver\Database\sqlsrvCode
public function __toString() {
// Default to a query that inserts everything at the same time.
return $this
->buildQuery(count($this->insertValues));
}