From 353c1cb63b0ea17d9012d7cce84a7bd55f083c77 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 5 Feb 2013 11:58:11 +0100 Subject: [PATCH] Bug fix for escaping in SQLite 3 --- plugins/dbms/sqlite/syntax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dbms/sqlite/syntax.py b/plugins/dbms/sqlite/syntax.py index 83c0a4741..6b2cec7c3 100644 --- a/plugins/dbms/sqlite/syntax.py +++ b/plugins/dbms/sqlite/syntax.py @@ -17,7 +17,7 @@ class Syntax(GenericSyntax): @staticmethod def escape(expression, quote=True): def escaper(value): - return "X'%s'" % binascii.hexlify(value) + return "CAST(X'%s' AS TEXT)" % binascii.hexlify(value) retVal = expression