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("'")