summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/psycopg2.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2009-11-06 02:39:16 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2009-11-06 02:39:16 +0000
commit8f4373104f0104886423bf0ecdf4d71239bb998e (patch)
treea3dae9ecdda51819996567f7d77ec7748326d8f9 /lib/sqlalchemy/dialects/postgresql/psycopg2.py
parente4571c59a68366306941919d29e8a5bb8824c2b0 (diff)
downloadsqlalchemy-8f4373104f0104886423bf0ecdf4d71239bb998e.tar.gz
supports unicode binds in PG too. even without the UNICODE extension it seems to work now...
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg2.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/psycopg2.py3
1 files changed, 2 insertions, 1 deletions
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')