Commit 12b5a000 authored by Vincent Pelletier's avatar Vincent Pelletier Committed by Julien Muchembled

ZSQLCatalog: fix search of non-NULL values

parent 011e5336
...@@ -294,12 +294,7 @@ class SearchKey(object): ...@@ -294,12 +294,7 @@ class SearchKey(object):
if logical_operator is None: if logical_operator is None:
logical_operator = default_logical_operator logical_operator = default_logical_operator
operator_value_dict = {} operator_value_dict = {}
if None in search_value: if comparison_operator is None:
if comparison_operator not in (None, 'is'):
LOG('KeywordKey', 100,
'None value requires an "is" comparison operator. Fixed.')
operator_value_dict['is'] = search_value
elif comparison_operator is None:
if issubclass(reference_class, basestring): if issubclass(reference_class, basestring):
if get_operator_from_value: if get_operator_from_value:
parsed = True parsed = True
......
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