]> 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:27:01 +0000 (09:27 -0400)
commitc7278af03a7565eddc3b197508a3b45bdc79d0c2
treedc209f41ae67e88b6f9a82e50c5a0d5e0159a66e
parent14a2ef8a80a72482d2912724500c6fe2c42694f4
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
(cherry picked from commit 0b6a54811d9cf4943ba2ae4b5a0eaa718b1e848e)
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