function DatabaseConnection_sqlite::queryTemporary

Overrides DatabaseConnection::queryTemporary

File

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

Class

DatabaseConnection_sqlite
Specific SQLite implementation of DatabaseConnection.

Code

public function queryTemporary($query, array $args = array(), array $options = array()) {
    // Generate a new temporary table name and protect it from prefixing.
    // SQLite requires that temporary tables to be non-qualified.
    $tablename = $this->generateTemporaryTableName();
    $prefixes = $this->prefixes;
    $prefixes[$tablename] = '';
    $this->setPrefix($prefixes);
    $this->query('CREATE TEMPORARY TABLE ' . $tablename . ' AS ' . $query, $args, $options);
    return $tablename;
}

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