]> git.joonet.de Git - adminer.git/commitdiff
Editor: Fix searching in tables
authorPeter Knut <peter@pematon.com>
Tue, 17 Sep 2024 13:36:42 +0000 (15:36 +0200)
committerJakub Vrana <jakub@vrana.cz>
Wed, 19 Feb 2025 18:04:47 +0000 (19:04 +0100)
Thanks to ytetsuro (https://github.com/vrana/adminer/pull/473)

editor/include/adminer.inc.php

index 0ba034f1db54595cf239e5e1565fce1c561c06d6..6f718c35a85b6c1e4edc75127f05bcc48efa58c5 100644 (file)
@@ -357,7 +357,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
                                                } else {
                                                        $text_type = preg_match('~char|text|enum|set~', $field["type"]);
                                                        $value = $this->processInput($field, (!$op && $text_type && preg_match('~^[^%]+$~', $val) ? "%$val%" : $val));
-                                                       $conds[] = $driver->convertSearch($name, $val, $field) . ($value == "NULL" ? " IS" . ($op == ">=" ? " NOT" : "") . " $value"
+                                                       $conds[] = $driver->convertSearch($name, $where, $field) . ($value == "NULL" ? " IS" . ($op == ">=" ? " NOT" : "") . " $value"
                                                                : (in_array($op, $this->operators) || $op == "=" ? " $op $value"
                                                                : ($text_type ? " LIKE $value"
                                                                : " IN (" . str_replace(",", "', '", $value) . ")"