From f2063c92c5dc3f417c22906c36f57e7d9a34082d Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 8 Feb 2021 17:41:59 +0100 Subject: [PATCH] Allow SQL pseudo-function in insert --- adminer/include/adminer.inc.php | 6 +++--- changes.txt | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) 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)