From 8e24549dddeebb9f91c7bda251c91239a8b4c906 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 25 Jul 2017 13:50:41 +0000 Subject: [PATCH] dblayeroo: add < and > comparisons git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3832 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- dblayeroo.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dblayeroo.php b/dblayeroo.php index 1c65b34..3ab1b66 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -1898,8 +1898,9 @@ class dblayeroo $this->DBException (sprintf ( "Invalid field to whereAdd '%s' : not defined in table", $field)); $operator = strtoupper ($operator); - $allowed = array ("=", "<=", ">=", "!=", "LIKE", "NOT LIKE", "IS NULL", - "IS NOT NULL", "REGEXP", "NOT REGEXP"); + $allowed = array ("=", "<", "<=", ">", ">=", "!=", + "LIKE", "NOT LIKE", "IS NULL", "IS NOT NULL", + "REGEXP", "NOT REGEXP"); if (! in_array ($operator, $allowed)) $this->DBException ("Invalid operator provided (unknown operator)"); // TODO : Check if the value is corresponding to the type of the column