]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add support for reflection of collation in types on PostgreSQL
authorDenis Laxalde <denis@laxalde.org>
Tue, 8 Apr 2025 13:00:27 +0000 (15:00 +0200)
committerDenis Laxalde <denis@laxalde.org>
Tue, 15 Jul 2025 10:31:30 +0000 (12:31 +0200)
commit1bb3ad10e33b49760e8b68bab021716d53e7f0ca
treee5fc98a59e64cb069721d96bc367aeb9daa2b472
parentb319787b413794ad8c6d70135a286e664be292f8
Add support for reflection of collation in types on PostgreSQL

The 'collation' returned by PGDialect._columns_query() is None if it
matches the default collation for the type. On the other hand, if the
column collation matches the one of the database but is explicitly set
at column creation, the value is reflected.

Related to #6511.
doc/build/changelog/unreleased_20/6511.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/testing/requirements.py
test/dialect/postgresql/test_reflection.py
test/engine/test_reflection.py
test/requirements.py