]> git.joonet.de Git - adminer.git/commitdiff
PDO: Support search by expression.
authorJakub Vrana <jakub@vrana.cz>
Thu, 6 Mar 2025 13:40:13 +0000 (14:40 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 6 Mar 2025 13:40:13 +0000 (14:40 +0100)
This reverts b848764.

adminer/include/pdo.inc.php

index 53b9573981c20590c4afd25f9acfca90a539d989..bde1535c5f1df6e3c9f3ca2f38a7551ee07d4913 100644 (file)
@@ -6,14 +6,6 @@ if (extension_loaded('pdo')) {
        abstract class PdoDb {
                var $_result, $server_info, $affected_rows, $errno, $error, $pdo;
 
-               function __construct() {
-                       global $adminer;
-                       $pos = array_search("SQL", $adminer->operators);
-                       if ($pos !== false) {
-                               unset($adminer->operators[$pos]);
-                       }
-               }
-
                function dsn($dsn, $username, $password, $options = array()) {
                        $options[\PDO::ATTR_ERRMODE] = \PDO::ERRMODE_SILENT;
                        $options[\PDO::ATTR_STATEMENT_CLASS] = array('Adminer\PdoDbStatement');