Add support for psycopg2 UNICODEARRAY extension

Issue #2894 resolved
Former user created an issue

SQLAlchemy currently enables psycopg2 UNICODE extension when "use_native_unicode" is requested. The UNICODEARRAY extension should be also be included in this case, as in:

dialects/postgresql/psycopg2.py:

        if self.dbapi and self.use_native_unicode:
            def on_connect(conn):
                extensions.register_type(extensions.UNICODE, conn)
                extensions.register_type(extensions.UNICODEARRAY, conn)
            fns.append(on_connect)

Comments (2)

  1. Log in to comment