From 86ffeb2a1e2ee48c4c3dd49beaec0ed8157d4979 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 6 Jun 2025 10:16:50 +0200 Subject: [PATCH] PostgreSQL: Add SQL operator to select --- CHANGELOG.md | 1 + adminer/drivers/pgsql.inc.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42e2df42..cc006010 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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() diff --git a/adminer/drivers/pgsql.inc.php b/adminer/drivers/pgsql.inc.php index 65f29a7f..d1b98bd4 100644 --- a/adminer/drivers/pgsql.inc.php +++ b/adminer/drivers/pgsql.inc.php @@ -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");