]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use literal_column() instead of literal() in test 8707/head
authorLele Gaifax <lele@metapensiero.it>
Wed, 2 Nov 2022 07:32:55 +0000 (08:32 +0100)
committerLele Gaifax <lele@metapensiero.it>
Wed, 2 Nov 2022 07:32:55 +0000 (08:32 +0100)
commit3a74a0d93e63032ebee02992977498c717a077ff
tree490c3ec46b05229f9f076aa1de8f85e1923eeaee
parentceee1951194f5014ee17416e4cef70abc2ffbfd9
Use literal_column() instead of literal() in test

This is an attempt to workaround an issue with asyncpg, where passing a
literal range as argument causes the following error:

<class 'asyncpg.exceptions.DataError'>: invalid input for query argument $1: 'empty' (list, tuple or Range object expected (got type <class 'str'>))
test/dialect/postgresql/test_dialect.py