1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-10-30 00:01:33 +01:00

Add leading & trailing spaces to all operators in LefilteredQuery

Doing so forbids operators like << == =! in* etc..
The tests were updated
This commit is contained in:
Yann 2016-05-20 14:53:08 +02:00
commit 5991bc8e6f
2 changed files with 9 additions and 6 deletions

View file

@ -92,12 +92,12 @@ class LeFilteredQuery(LeQuery):
##@brief The available operators used in query definitions
_query_operators = [
'=',
'<=',
'>=',
'!=',
'<',
'>',
' = ',
' <= ',
' >= ',
' != ',
' < ',
' > ',
' in ',
' not in ',
' like ',

View file

@ -73,6 +73,9 @@ class LeFilteredQueryTestCase(unittest.TestCase):
"'",
"not_exists != bar",
"lodel_id # bar",
"lodel_id == bar",
"lodel_id =! bar",
"lodel_id >> bar",
"lodel_id ind 42,43",
"lodel_id llike 42",
('lodel_id', '', '42'),