public function Connection::PDOPrepare

NEVER CALL THIS FUNCTION: YOU MIGHT DEADLOCK YOUR PHP PROCESS.

This is a wrapper around the parent PDO::prepare method. However, as the PDO SQLite driver only closes SELECT statements when the PDOStatement destructor is called and SQLite does not allow data change (INSERT, UPDATE etc) on a table which has open SELECT statements, you should never call this function and keep a PDOStatement object alive as that can lead to a deadlock. This really, really should be private, but as Statement needs to call it, we have no other choice but to expose this function to the world.

File

drupal/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 249
Definition of Drupal\Core\Database\Driver\sqlite\Connection

Class

Connection
Specific SQLite implementation of DatabaseConnection.

Namespace

Drupal\Core\Database\Driver\sqlite

Code

public function PDOPrepare($query, array $options = array()) {
  return parent::prepare($query, $options);
}