]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: change signature of SQL.join() to allow a sequence of Any
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 20 May 2025 15:06:06 +0000 (17:06 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 5 Jul 2025 17:16:35 +0000 (19:16 +0200)
commitb939ee7c87fd9a7810db8597039a26ad7dab4d2c
tree2a1bf3015e51a47efae0a6024b27ac3d3eda5927
parentc2d9336d068e0f7aa24ad18e30d06509deb4c367
fix: change signature of SQL.join() to allow a sequence of Any

We declared accepting a sequence of Composable, but, because we passed
the joined values to `Composite`, actually non-composable were
interpreted as `Literal`.

Make this behaviour explicit by testing it and fixing the signature.
psycopg/psycopg/sql.py
tests/test_sql.py