From: Jakub Vrana Date: Mon, 8 Feb 2021 16:41:59 +0000 (+0100) Subject: Allow SQL pseudo-function in insert X-Git-Tag: v4.8.0~42 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=f2063c92c5dc3f417c22906c36f57e7d9a34082d;p=adminer.git Allow SQL pseudo-function in insert --- 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)