diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 626c7ab0..c5017331 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -684,9 +684,9 @@ class Adminer { $return .= "/$val"; } } - if ($key && !preg_match('~set|blob|bytea|raw|file|bool~', $field["type"])) { - $return .= "/SQL"; - } + } + if ($key && !preg_match('~set|blob|bytea|raw|file|bool~', $field["type"])) { + $return .= "/SQL"; } } if ($field["auto_increment"] && !$update) { diff --git a/changes.txt b/changes.txt index 188969bb..1e092af0 100644 --- a/changes.txt +++ b/changes.txt @@ -1,4 +1,5 @@ Adminer 4.7.10-dev: +Allow SQL pseudo-function in insert Skip date columns for non-date values in search anywhere Add DB version to comment in export Support PHP 8 in create table (regression from 4.7.9)