diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-04-08 15:59:28 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-04-08 15:59:28 -0400 |
commit | a347c03907fb2583723a5b36a083170ee21d4c0a (patch) | |
tree | 6d9fca1d3704b26013f2fcba82a30b234881b27f /lib/sqlalchemy/dialects/postgresql/psycopg2.py | |
parent | df3bf65f12e134db9f13fa66010969dda96d2249 (diff) | |
download | sqlalchemy-a347c03907fb2583723a5b36a083170ee21d4c0a.tar.gz |
- no encoding with arrays
- rework the "builtin types" thing with the ReplayableSession to be py3k compatible
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg2.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/psycopg2.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py index d840a0d1e..708a72195 100644 --- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py +++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py @@ -150,11 +150,13 @@ class _PGEnum(ENUM): class _PGArray(ARRAY): def __init__(self, *arg, **kw): super(_PGArray, self).__init__(*arg, **kw) + # Py2K # FIXME: this check won't work for setups that # have convert_unicode only on their create_engine(). if isinstance(self.item_type, sqltypes.String) and \ self.item_type.convert_unicode: self.item_type.convert_unicode = "force" + # end Py2K # When we're handed literal SQL, ensure it's a SELECT-query. Since # 8.3, combining cursors and "FOR UPDATE" has been fine. |