aligned Firebird to recent DB2 string escaping syntax fix

This commit is contained in:
Bernardo Damele 2013-01-18 22:57:57 +00:00
parent 4526e31485
commit a4b0b98f8f

View File

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