From 9ae645d5d1a8cc7732a6d335be6205d0b21e31b1 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 20 Sep 2022 12:21:14 -0400 Subject: 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 --- lib/sqlalchemy/dialects/postgresql/asyncpg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/dialects/postgresql/asyncpg.py') diff --git a/lib/sqlalchemy/dialects/postgresql/asyncpg.py b/lib/sqlalchemy/dialects/postgresql/asyncpg.py index 4cc04d20a..c953d3447 100644 --- a/lib/sqlalchemy/dialects/postgresql/asyncpg.py +++ b/lib/sqlalchemy/dialects/postgresql/asyncpg.py @@ -291,7 +291,7 @@ class AsyncpgCHAR(sqltypes.CHAR): render_bind_cast = True -class _AsyncpgRange(ranges.AbstractRange): +class _AsyncpgRange(ranges.AbstractRangeImpl): def bind_processor(self, dialect): Range = dialect.dbapi.asyncpg.Range @@ -326,7 +326,7 @@ class _AsyncpgRange(ranges.AbstractRange): return to_range -class _AsyncpgMultiRange(ranges.AbstractMultiRange): +class _AsyncpgMultiRange(ranges.AbstractMultiRangeImpl): def bind_processor(self, dialect): Range = dialect.dbapi.asyncpg.Range -- cgit v1.2.1