Commit 5ca4d563 authored by Florent Guillaume's avatar Florent Guillaume

Handle unicode strings.

parent 1c75ebfc
......@@ -160,7 +160,8 @@ class SQLTest:
'Invalid floating-point value for <em>%s</em>' % name)
else:
v=str(v)
if not isinstance(v, (str, unicode)):
v = str(v)
v=md.getitem('sql_quote__',0)(v)
#if find(v,"\'") >= 0: v=join(split(v,"\'"),"''")
#v="'%s'" % v
......
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