You are here

public function SelectQuery_sqlsrv::compile in Drupal driver for SQL Server and SQL Azure 7.2

Same name and namespace in other branches
  1. 7.3 sqlsrv/select.inc \SelectQuery_sqlsrv::compile()
  2. 7 sqlsrv/select.inc \SelectQuery_sqlsrv::compile()

Override for SelectQuery::compile().

Detect when this query is prepared for use in a sub-query.

Overrides SelectQuery::compile

1 call to SelectQuery_sqlsrv::compile()
SelectQuery_sqlsrv::__toString in sqlsrv/select.inc
Implements PHP magic __toString method to convert the query to a string.

File

sqlsrv/select.inc, line 191

Class

SelectQuery_sqlsrv

Code

public function compile(DatabaseConnection $connection, QueryPlaceholderInterface $queryPlaceholder) {
  $this->inSubQuery = $queryPlaceholder != $this;
  return parent::compile($connection, $queryPlaceholder);
}