From 91ebadff75dfd368c709b610e0bc691726b986b7 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 30 Jan 2012 13:32:52 +0000 Subject: [PATCH] minor update --- plugins/dbms/postgresql/syntax.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/dbms/postgresql/syntax.py b/plugins/dbms/postgresql/syntax.py index a2ff34f3c..902300f18 100644 --- a/plugins/dbms/postgresql/syntax.py +++ b/plugins/dbms/postgresql/syntax.py @@ -34,6 +34,7 @@ class Syntax(GenericSyntax): unescaped = "" for i in xrange(firstIndex, lastIndex): + # Postgres CHR() function already accepts Unicode code point of character(s) unescaped += "CHR(%d)" % (ord(expression[i])) if i < lastIndex - 1: unescaped += "||"