From 8f4373104f0104886423bf0ecdf4d71239bb998e Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 6 Nov 2009 02:39:16 +0000 Subject: [PATCH] supports unicode binds in PG too. even without the UNICODE extension it seems to work now... --- lib/sqlalchemy/dialects/postgresql/psycopg2.py | 3 ++- test/aaa_profiling/test_zoomark_orm.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py index f83baee7fe..aa4e07bb3b 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') diff --git a/test/aaa_profiling/test_zoomark_orm.py b/test/aaa_profiling/test_zoomark_orm.py index 1d34a4083b..d07d0b6f7e 100644 --- a/test/aaa_profiling/test_zoomark_orm.py +++ b/test/aaa_profiling/test_zoomark_orm.py @@ -303,7 +303,7 @@ class ZooMarkTest(TestBase): def test_profile_3_properties(self): self.test_baseline_3_properties() - @profiling.function_call_count(23861) + @profiling.function_call_count(22510) def test_profile_4_expressions(self): self.test_baseline_4_expressions() -- 2.47.3