]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix column collation reflection w.r.t. type's default in PostgreSQL
authorDenis Laxalde <denis@laxalde.org>
Tue, 22 Jul 2025 11:55:40 +0000 (13:55 +0200)
committerDenis Laxalde <denis@laxalde.org>
Tue, 22 Jul 2025 11:55:40 +0000 (13:55 +0200)
commit5a0318c21fd8d800a23d2e39d4c66d7b051fb21e
treee2c66aec69ae5652ec6a839c504934bae360cd23
parent4c2ba7349824fdacc26c35d36f8b95cf3a35c99a
Fix column collation reflection w.r.t. type's default in PostgreSQL

The previous `if` clause was wrong as it would match the `else` branch
if `default_collation_for_types` was `None` whereas we only want that
branch to match if the type is in `default_collation_for_types` array.
lib/sqlalchemy/dialects/postgresql/base.py