diff --git a/plugins/dbms/oracle/syntax.py b/plugins/dbms/oracle/syntax.py index a2ff34f3c..6e80c9e37 100644 --- a/plugins/dbms/oracle/syntax.py +++ b/plugins/dbms/oracle/syntax.py @@ -34,7 +34,7 @@ class Syntax(GenericSyntax): unescaped = "" for i in xrange(firstIndex, lastIndex): - unescaped += "CHR(%d)" % (ord(expression[i])) + unescaped += "%s(%d)" % ("CHR" if ord(expression[i]) < 256 else "NCHR", ord(expression[i])) if i < lastIndex - 1: unescaped += "||"