You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "asyncpg/protocol/protocol.pyx", line 183, in bind_execute
File "asyncpg/protocol/prepared_stmt.pyx", line 197, in asyncpg.protocol.protocol.PreparedStatementState._encode_bind_msg
asyncpg.exceptions.DataError: invalid input for query argument $1: 3 (list, tuple or Range object expected (got type <class 'int'>))
Expected behaviour
Allow the argument of a containment query to be of the range type (int, datetime, date).
The text was updated successfully, but these errors were encountered:
the issue with a local PostgreSQL install?: Locally against postgres docker
uvloop?: Didn't try uvloop
Bug description
Trying to run a containment query against a range type.
https://www.postgresql.org/docs/13/rangetypes.html
Simplified version of the SQL
Using
asyncpg
with a python datetimeSame behaviour is observed with other range types
Expected behaviour
Allow the argument of a containment query to be of the range type (int, datetime, date).
The text was updated successfully, but these errors were encountered: