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.