]> git.joonet.de Git - adminer.git/commitdiff
PostgreSQL: Add SQL operator to select
authorJakub Vrana <jakub@vrana.cz>
Fri, 6 Jun 2025 08:16:50 +0000 (10:16 +0200)
committerJakub Vrana <jakub@vrana.cz>
Fri, 6 Jun 2025 08:19:24 +0000 (10:19 +0200)
CHANGELOG.md
adminer/drivers/pgsql.inc.php

index 42e2df42db7e5b604a69060bdd882d18cc689844..cc00601092e297415751a330fe32d1730ac27845 100644 (file)
@@ -4,6 +4,7 @@
 - Warn about exceeded max_file_uploads in import
 - MySQL 5.0-: Do not load partitioning info in alter table (bug #1099)
 - PostgreSQL: Show structure of inherited tables
+- PostgreSQL: Add SQL operator to select
 - PostgreSQL: Hide only partitions, not all inherited tables from menu
 - PostgreSQL 11-: Avoid duplicate oid in table status (bug #1089)
 - Plugins: Methods processList() and killProcess()
index 65f29a7f263dbb9efbeb8871f952103a96d426df..d1b98bd4315b20611c1c23295caba677da227fdc 100644 (file)
@@ -204,7 +204,7 @@ if (isset($_GET["pgsql"])) {
                static $extensions = array("PgSQL", "PDO_PgSQL");
                static $jush = "pgsql";
 
-               public $operators = array("=", "<", ">", "<=", ">=", "!=", "~", "!~", "LIKE", "LIKE %%", "ILIKE", "ILIKE %%", "IN", "IS NULL", "NOT LIKE", "NOT ILIKE", "NOT IN", "IS NOT NULL"); // no "SQL" to avoid CSRF
+               public $operators = array("=", "<", ">", "<=", ">=", "!=", "~", "!~", "LIKE", "LIKE %%", "ILIKE", "ILIKE %%", "IN", "IS NULL", "NOT LIKE", "NOT ILIKE", "NOT IN", "IS NOT NULL", "SQL"); //! SQL - same-site CSRF
                public $functions = array("char_length", "lower", "round", "to_hex", "to_timestamp", "upper");
                public $grouping = array("avg", "count", "count distinct", "max", "min", "sum");