From 52253750485443556732f57905f8c239861ca7ab Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 17 Jan 2013 22:04:21 +0000 Subject: [PATCH] proper fix --- plugins/dbms/db2/syntax.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dbms/db2/syntax.py b/plugins/dbms/db2/syntax.py index 6751cedc0..bb9617715 100644 --- a/plugins/dbms/db2/syntax.py +++ b/plugins/dbms/db2/syntax.py @@ -15,8 +15,8 @@ class Syntax(GenericSyntax): @staticmethod def unescape(expression, quote=True): - if expression == "'": - return expression + if expression == u"'''": + return "CHR(%d)" % (ord("'")) if quote: while True: