From b83e44556c6b4556cab5409d2cd8b02d8c17c506 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 24 Jul 2003 14:06:36 +0000 Subject: [PATCH] LIKE in Select sub-page for non-text fields --- ChangeLog | 1 + tbl_select.php3 | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 038ddfd87..06514985b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ $Source$ 2003-07-24 Marc Delisle * libraries/sqlparser.lib.php3 /relation.lib.php3 /get_foreign.lib.php3: bug 772765, InnoDB and multi-columns foreign key + * tbl_select.php3: LIKE in Select sub-page for non-text fields 2003-07-23 Alexander M. Turek * libraries/mysql_charsets.lib.php3: diff --git a/tbl_select.php3 b/tbl_select.php3 index f8380371d..a236d0c15 100755 --- a/tbl_select.php3 +++ b/tbl_select.php3 @@ -14,8 +14,10 @@ require('./libraries/relation.lib.php3'); // foreign keys /** * Defines arrays of functions (should possibly be in config.inc.php3 * so it can also be used in tbl_qbe.php3) + * + * LIKE works also on integers and dates so I added it in numfunctions */ -$numfunctions = array('=', '>', '>=', '<', '<=', '!='); +$numfunctions = array('=', '>', '>=', '<', '<=', '!=', 'LIKE'); $textfunctions = array('LIKE', '=', '!=');