]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Repaired support for Postgresql UUID types in conjunction with
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 2 Feb 2015 00:00:07 +0000 (19:00 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 2 Feb 2015 00:03:08 +0000 (19:03 -0500)
commitb2189da65019ed2f44e77933a122619489319c5a
tree1e3bcd44586eccfeebd9bd56b4da9606edd07769
parent02dbcfa88a8390ee2af4f76e47bca8f205ddeee5
- Repaired support for Postgresql UUID types in conjunction with
the ARRAY type when using psycopg2.  The psycopg2 dialect now
employs use of the psycopg2.extras.register_uuid() hook
so that UUID values are always passed to/from the DBAPI as
UUID() objects.   The :paramref:`.UUID.as_uuid` flag is still
honored, except with psycopg2 we need to convert returned
UUID objects back into strings when this is disabled.
fixes #2940
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/dialects/postgresql/psycopg2.py
test/dialect/postgresql/test_types.py