]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
auto-cast PG range types
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 20 Sep 2022 16:21:14 +0000 (12:21 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 20 Sep 2022 16:34:46 +0000 (12:34 -0400)
commit9ae645d5d1a8cc7732a6d335be6205d0b21e31b1
tree00265efd4658b42bf7bd3d794dc82568a73f7ea1
parent214d1ad7c38deebec6547da22b99c0a4804bf820
auto-cast PG range types

Range type handling has been enhanced so that it automatically
renders type casts, so that in-place round trips for statements that don't
provide the database with any context don't require the :func:`_sql.cast`
construct to be explicit for the database to know the desired type.

Change-Id: Id630b726f8a23059dd2f4cbc410bf5229d89cbfb
References: #8540
doc/build/changelog/unreleased_20/7156.rst
lib/sqlalchemy/dialects/postgresql/asyncpg.py
lib/sqlalchemy/dialects/postgresql/psycopg.py
lib/sqlalchemy/dialects/postgresql/psycopg2.py
lib/sqlalchemy/dialects/postgresql/ranges.py
test/dialect/postgresql/test_types.py