]> git.joonet.de Git - adminer.git/commitdiff
Allow SQL pseudo-function in insert
authorJakub Vrana <jakub@vrana.cz>
Mon, 8 Feb 2021 16:41:59 +0000 (17:41 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 8 Feb 2021 16:41:59 +0000 (17:41 +0100)
adminer/include/adminer.inc.php
changes.txt

index 626c7ab0bc416e5f613163ded0f43c8a1a3040fa..c5017331e7830cb08fe329b6ba34ccbd2bf9ad16 100644 (file)
@@ -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) {
index 188969bbb2540bb202e4f1017fed994fdf03cf93..1e092af03c893115eb4c82641c5d78dd93ec2e06 100644 (file)
@@ -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)