Skip to content

Commit dc9dc23

Browse files
committed
Adding a comment
1 parent 0d2138a commit dc9dc23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/dbms/sqlite/syntax.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def __init__(self):
1818
@staticmethod
1919
def escape(expression, quote=True):
2020
def escaper(value):
21+
# Reference: http://stackoverflow.com/questions/3444335/how-do-i-quote-a-utf-8-string-literal-in-sqlite3
2122
return "CAST(X'%s' AS TEXT)" % binascii.hexlify(value.encode(UNICODE_ENCODING) if isinstance(value, unicode) else value)
2223

2324
retVal = expression

0 commit comments

Comments
 (0)