From 5f7fb62803362935133927e5aeab1f277e4aeb95 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 4 May 2025 12:46:01 +0200 Subject: [PATCH] PostgreSQL: Add NOT ILIKE operator (fix #1066) --- 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 f7799b55..8ff88375 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - PostgreSQL: Move partitioned tables from table list to parent table - PostgreSQL: Support partial indices (bug #1048) - PostgreSQL: Support calling functions returning table (bug #1040) +- PostgreSQL: Add NOT ILIKE operator (bug #1066) - Designs: adminer.css with 'prefers-color-scheme: dark' doesn't disable dark mode - Plugins: Method bodyClass() to add <body class> - Plugins: Allow setting dark mode in css() diff --git a/adminer/drivers/pgsql.inc.php b/adminer/drivers/pgsql.inc.php index d6aae369..0699858b 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 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"); // no "SQL" to avoid CSRF public $functions = array("char_length", "lower", "round", "to_hex", "to_timestamp", "upper"); public $grouping = array("avg", "count", "count distinct", "max", "min", "sum");