Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function DatabaseConnection_sqlite::prepareQuery

Prepares a query string and returns the prepared statement.

This method caches prepared statements, reusing them when possible. It also prefixes tables names enclosed in curly-braces.

Parameters

$query: The query string as SQL, with curly-braces surrounding the table names.

Return value

DatabaseStatementInterface A PDO prepared statement ready for its execute() method.

Overrides DatabaseConnection::prepareQuery

File

includes/database/sqlite/database.inc, line 301

Class

DatabaseConnection_sqlite
Specific SQLite implementation of DatabaseConnection.

Code

public function prepareQuery($query) {
 return $this->prepare ($this->prefixTables ($query));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.