1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 22:56:46 +02:00

URL parameter ?ext=pdo to force using PDO

This commit is contained in:
Jakub Vrana
2025-03-22 06:15:57 +01:00
parent aaca1eee8e
commit 3f2eec9b92
8 changed files with 9 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ $drivers["sqlite"] = "SQLite";
if (isset($_GET["sqlite"])) {
define('Adminer\DRIVER', "sqlite");
if (class_exists("SQLite3")) {
if (class_exists("SQLite3") && $_GET["ext"] != "pdo") {
class SqliteDb {
public $extension = "SQLite3", $server_info, $affected_rows, $errno, $error;