]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Gracefully degrade unsupported types with asyncpg
authorGord Thompson <gord@gordthompson.com>
Tue, 2 Nov 2021 22:16:50 +0000 (16:16 -0600)
committerGord Thompson <gord@gordthompson.com>
Tue, 2 Nov 2021 23:40:55 +0000 (17:40 -0600)
commit96c294da8a50d692b3f0b8e508dbbca5d9c22f1b
tree1e6b18afc809395d7904d5f8084b861a9b9a46d2
parent37bc1285c5bddf1e1b3a5830c530139e6fdd4bc4
Gracefully degrade unsupported types with asyncpg

Fixes: #7284
Modify the on_connect() method of PGDialect_asyncpg to
gracefully degrade unsupported types instead of throwing a
ValueError. Useful for third-party dialects that derive
from PGDialect_asyncpg but whose databases do not support
all types (e.g., CockroachDB supports JSONB but not JSON).

Change-Id: Ibb7cc8c3de632d27b9716a93d83956a590b2a2b0
doc/build/changelog/unreleased_14/7284.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/asyncpg.py