public function DatabaseConnection_sqlsrv::prepareQuery in Drupal driver for SQL Server and SQL Azure 7
Same name and namespace in other branches
- 7.3 sqlsrv/database.inc \DatabaseConnection_sqlsrv::prepareQuery()
- 7.2 sqlsrv/database.inc \DatabaseConnection_sqlsrv::prepareQuery()
Temporary override of DatabaseConnection::prepareQuery().
@todo: remove that when DatabaseConnection::prepareQuery() is fixed to call $this->prepare() and not parent::prepare(). @status: tested, temporary
Overrides DatabaseConnection::prepareQuery
1 call to DatabaseConnection_sqlsrv::prepareQuery()
- DatabaseConnection_sqlsrv::query in sqlsrv/
database.inc - This method is overriden to manage the insecure (EMULATE_PREPARE) behaviour to prevent some compatibility issues with SQL Server.
File
- sqlsrv/
database.inc, line 124 - Database interface code for Microsoft SQL Server.
Class
Code
public function prepareQuery($query) {
$query = $this
->prefixTables($query);
// Call our overriden prepare.
return $this
->prepare($query);
}