From 534cb1f08ad09693e684df848a6e4b9642de25d2 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Tue, 27 Apr 2004 11:10:31 +0000 Subject: [PATCH] RFE #940194 - Added REGEXP to search options --- ChangeLog | 1 + tbl_select.php | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index bdeed106c..89363ba01 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ $Source$ calendar. 2004-04-27 Garvin Hicking + * tbl_select.php: RFE #940194 - Add REGEXP to table search options * read_dump.php: Bug #925913 - Uploading with UploadDir/open_basedir fails. * querywindow.php: Bug #942395 - Missing space diff --git a/tbl_select.php b/tbl_select.php index 657b98c95..40b65ae10 100644 --- a/tbl_select.php +++ b/tbl_select.php @@ -37,7 +37,7 @@ if ($cfg['PropertiesIconic'] == true) { * LIKE works also on integers and dates so I added it in numfunctions */ $numfunctions = array('=', '>', '>=', '<', '<=', '!=', 'LIKE', 'NOT LIKE'); -$textfunctions = array('LIKE', 'NOT LIKE', '=', '!='); +$textfunctions = array('LIKE', 'NOT LIKE', '=', '!=', 'REGEXP', 'NOT REGEXP'); $enumfunctions = array('=', '!='); $nullfunctions = array('IS NULL', 'IS NOT NULL'); $unaryfunctions = array( @@ -67,7 +67,7 @@ if (!isset($param) || $param[0] == '') { $fields_list[] = $row['Field']; $type = $row['Type']; // reformat mysql query output - staybyte - 9. June 2001 - if (strncasecmp($type, 'set', 3) == 0 + if (strncasecmp($type, 'set', 3) == 0 || strncasecmp($type, 'enum', 4) == 0) { $type = str_replace(',', ', ', $type); } else { @@ -102,7 +102,7 @@ if (!isset($param) || $param[0] == '') {