LIKE in Select sub-page for non-text fields

This commit is contained in:
Marc Delisle
2003-07-24 14:06:36 +00:00
parent fd979ea10b
commit b83e44556c
2 changed files with 4 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ $Source$
2003-07-24 Marc Delisle <lem9@users.sourceforge.net>
* 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 <rabus@users.sourceforge.net>
* libraries/mysql_charsets.lib.php3:

View File

@@ -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', '=', '!=');