Commit fb0ecb5f authored by Tristan Cavelier's avatar Tristan Cavelier

avoid rendering invalid queries for non SearchableText columns

parent 8e9efd35
......@@ -70,6 +70,8 @@ def valueDefaultSearchTextRenderer(value):
This is just repr, but always surrounding text strings with doublequotes.
"""
if isinstance(value, basestring):
if value.replace("\\\\", "")[-1] == "\\":
value = value[:-1]
result = '"{}"'.format(value.replace('"', '\\"'))
else:
result = repr(value)
......
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