From a4b0b98f8f9ac8c000ce306da7b3994c865c9d3c Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 18 Jan 2013 22:57:57 +0000 Subject: [PATCH] aligned Firebird to recent DB2 string escaping syntax fix --- plugins/dbms/firebird/syntax.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/dbms/firebird/syntax.py b/plugins/dbms/firebird/syntax.py index f0d91c78f..a77359249 100644 --- a/plugins/dbms/firebird/syntax.py +++ b/plugins/dbms/firebird/syntax.py @@ -16,6 +16,9 @@ class Syntax(GenericSyntax): @staticmethod def escape(expression, quote=True): if isDBMSVersionAtLeast('2.1'): + if expression == u"'''": + return "ASCII_CHAR(%d)" % (ord("'")) + if quote: while True: index = expression.find("'")