From 8f4373104f0104886423bf0ecdf4d71239bb998e Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 6 Nov 2009 02:39:16 +0000 Subject: supports unicode binds in PG too. even without the UNICODE extension it seems to work now... --- lib/sqlalchemy/dialects/postgresql/psycopg2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg2.py') diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py index f83baee7f..aa4e07bb3 100644 --- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py +++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py @@ -150,7 +150,8 @@ class PostgreSQL_psycopg2(PGDialect): PGDialect.__init__(self, **kwargs) self.server_side_cursors = server_side_cursors self.use_native_unicode = use_native_unicode - + self.supports_unicode_binds = use_native_unicode + @classmethod def dbapi(cls): psycopg = __import__('psycopg2') -- cgit v1.2.1