Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d2138a commit dc9dc23Copy full SHA for dc9dc23
1 file changed
plugins/dbms/sqlite/syntax.py
@@ -18,6 +18,7 @@ def __init__(self):
18
@staticmethod
19
def escape(expression, quote=True):
20
def escaper(value):
21
+ # Reference: http://stackoverflow.com/questions/3444335/how-do-i-quote-a-utf-8-string-literal-in-sqlite3
22
return "CAST(X'%s' AS TEXT)" % binascii.hexlify(value.encode(UNICODE_ENCODING) if isinstance(value, unicode) else value)
23
24
retVal = expression
0 commit comments