Commit 3ac7a1b9 authored by Tristan Cavelier's avatar Tristan Cavelier

avoid rendering invalid queries for non SearchableText columns

parent b84135b5
......@@ -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