From: Mike Bayer Date: Fri, 6 Nov 2009 02:39:16 +0000 (+0000) Subject: supports unicode binds in PG too. even without the UNICODE extension it seems to... X-Git-Tag: rel_0_6beta1~183 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f4373104f0104886423bf0ecdf4d71239bb998e;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git supports unicode binds in PG too. even without the UNICODE extension it seems to work now... --- 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()