Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorliviuconcioiu <liviu.concioiu@gmail.com>2021-04-17 00:44:19 +0300
committerWilliam Desportes <williamdes@wdes.fr>2021-04-23 19:58:08 +0300
commitc4ca6f346c3d5114564c5ee1c9ff4de2188e51cc (patch)
tree416009209d210fe8cebd6dd821df44ed030436cf /js
parent971e07a3a2254299898e45de5fe4435b2236fa4f (diff)
Fix #16829 - Add NOT LIKE %...% operator to Table search
Signed-off-by: Liviu Concioiu <liviu.concioiu@gmail.com>
Diffstat (limited to 'js')
-rw-r--r--js/src/database/query_generator.js1
-rw-r--r--js/src/table/change.js3
2 files changed, 3 insertions, 1 deletions
diff --git a/js/src/database/query_generator.js b/js/src/database/query_generator.js
index 97842b3615..d2692aee3a 100644
--- a/js/src/database/query_generator.js
+++ b/js/src/database/query_generator.js
@@ -21,6 +21,7 @@ function getFormatsText () {
'LIKE': ' LIKE \'%s\'',
'LIKE %...%': ' LIKE \'%%%s%%\'',
'NOT LIKE': ' NOT LIKE \'%s\'',
+ 'NOT LIKE %...%': ' NOT LIKE \'%%%s%%\'',
'BETWEEN': ' BETWEEN \'%s\'',
'NOT BETWEEN': ' NOT BETWEEN \'%s\'',
'IS NULL': ' \'%s\' IS NULL',
diff --git a/js/src/table/change.js b/js/src/table/change.js
index 27ed7e3138..a4082bfa1a 100644
--- a/js/src/table/change.js
+++ b/js/src/table/change.js
@@ -849,7 +849,8 @@ function changeValueFieldType (elem, searchIndex) {
if ('LIKE' === type ||
'LIKE %...%' === type ||
- 'NOT LIKE' === type
+ 'NOT LIKE' === type ||
+ 'NOT LIKE %...%' === type
) {
$('#fieldID_' + searchIndex).data('data-skip-validators', true);
return;