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::__call

Proxy possible direct calls to the \PDO methods.

Since PHP8.0 the signature of the the \PDO::query() method has changed, and this class can't extending \PDO any more.

However, for the BC, proxy any calls to the \PDO methods to the actual PDO connection object.

File

includes/database/database.inc, line 352

Class

DatabaseConnection
Base Database API class.

Code

public function __call($name, $arguments) {
 return call_user_func_array (array(
 $this->connection ,
 $name,
 ), $arguments);
}

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