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:
parent
f402902b5b
commit
5991bc8e6f
2 changed files with 9 additions and 6 deletions
|
|
@ -92,12 +92,12 @@ class LeFilteredQuery(LeQuery):
|
|||
|
||||
##@brief The available operators used in query definitions
|
||||
_query_operators = [
|
||||
'=',
|
||||
'<=',
|
||||
'>=',
|
||||
'!=',
|
||||
'<',
|
||||
'>',
|
||||
' = ',
|
||||
' <= ',
|
||||
' >= ',
|
||||
' != ',
|
||||
' < ',
|
||||
' > ',
|
||||
' in ',
|
||||
' not in ',
|
||||
' like ',
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
Loading…
Add table
Add a link
Reference in a new issue