Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 353c1cb

Browse files
committed
Bug fix for escaping in SQLite 3
1 parent e836629 commit 353c1cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/dbms/sqlite/syntax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self):
1717
@staticmethod
1818
def escape(expression, quote=True):
1919
def escaper(value):
20-
return "X'%s'" % binascii.hexlify(value)
20+
return "CAST(X'%s' AS TEXT)" % binascii.hexlify(value)
2121

2222
retVal = expression
2323

0 commit comments

Comments
 (0)