diff --git a/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php b/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php index 5aaf7da..31577fd 100644 --- a/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php +++ b/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php @@ -229,7 +229,7 @@ public static function sqlFunctionSubstringIndex($string, $delimiter, $count) { /** * SQLite compatibility implementation for the RAND() SQL function. */ - public function sqlFunctionRand($seed = NULL) { + public static function sqlFunctionRand($seed = NULL) { if (isset($seed)) { mt_srand($seed); } @@ -243,9 +243,8 @@ public function sqlFunctionRand($seed = NULL) { * a Statement object, that will create a PDOStatement * using the semi-private PDOPrepare() method below. */ - public function prepare($query, $options = array()) { - return new Statement($this, $query, $options); - } + public function prepare($statement, array $driver_options = array()) { + return new Statement($this, $statement, $driver_options); } /** * NEVER CALL THIS FUNCTION: YOU MIGHT DEADLOCK YOUR PHP PROCESS.