]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add pg DOMAIN type reflection
authorThomas Stephenson <t.stephenson@cqu.edu.au>
Wed, 21 Feb 2024 20:17:01 +0000 (15:17 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 22 Mar 2024 13:26:53 +0000 (09:26 -0400)
commit0b6a54811d9cf4943ba2ae4b5a0eaa718b1e848e
treecc4201d61d42022c4ffcbedd2cc58763e0c3e543
parent7c70ab8c6b7b9ce1c566862c4ca0438e0b0e9131
Add pg DOMAIN type reflection

The PostgreSQL dialect now returns :class:`_postgresql.DOMAIN` instances
when reflecting a column that has a domain as type.
Previously the domain data type was returned instead.
As part of this change, the domain reflection was improved to also
return the collation of the text types.

Fixes: #10693
Closes: #10729
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/10729
Pull-request-sha: adac164d191138265ecd64a28be91254a53a9c25

Change-Id: I8730840de2e7e9649067191430eefa086bcf5e7b
doc/build/changelog/unreleased_20/10693.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/postgresql/named_types.py
lib/sqlalchemy/dialects/postgresql/pg_catalog.py
test/dialect/postgresql/test_reflection.py
test/dialect/postgresql/test_types.py