Commit 31047f8a authored by Vincent Pelletier's avatar Vincent Pelletier

ZSQLCatalog.SQLCatalog: Tolerate comparison_operation=None in scriptable keys.

parent 3a783152
...@@ -2564,7 +2564,7 @@ class SearchKeyWrapperForScriptableKey(SearchKey.SearchKey.SearchKey): ...@@ -2564,7 +2564,7 @@ class SearchKeyWrapperForScriptableKey(SearchKey.SearchKey.SearchKey):
raise ValueError( raise ValueError(
'ScriptableKey ignores logical operators (%r given).' % (logical_operator, ), 'ScriptableKey ignores logical operators (%r given).' % (logical_operator, ),
) )
if comparison_operator != '': if comparison_operator:
raise ValueError( raise ValueError(
'ScriptableKey ignores comparison operators (%r given).' % (comparison_operator, ), 'ScriptableKey ignores comparison operators (%r given).' % (comparison_operator, ),
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment