We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5e39bc commit 0d2138aCopy full SHA for 0d2138a
1 file changed
plugins/dbms/sqlite/syntax.py
@@ -8,6 +8,7 @@
8
import binascii
9
10
from lib.core.common import isDBMSVersionAtLeast
11
+from lib.core.settings import UNICODE_ENCODING
12
from plugins.generic.syntax import Syntax as GenericSyntax
13
14
class Syntax(GenericSyntax):
@@ -17,7 +18,7 @@ def __init__(self):
17
18
@staticmethod
19
def escape(expression, quote=True):
20
def escaper(value):
- return "CAST(X'%s' AS TEXT)" % binascii.hexlify(value)
21
+ return "CAST(X'%s' AS TEXT)" % binascii.hexlify(value.encode(UNICODE_ENCODING) if isinstance(value, unicode) else value)
22
23
retVal = expression
24
0 commit comments