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["pgsql"] = "PostgreSQL";
if (isset($_GET["pgsql"])) {
define('Adminer\DRIVER', "pgsql");
if (extension_loaded("pgsql")) {
if (extension_loaded("pgsql") && $_GET["ext"] != "pdo") {
class Db {
public $extension = "PgSQL", $server_info, $affected_rows, $error, $timeout;
private $link, $result, $string, $database = true;