]> 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:32 +0000 (19:16 +0200)
commit776697d812e6e997b60642f9019dfb742d73aacc
treeb0ec2fa34c0ba4b68061fa8ca362839976840f5d
parent7102234c887952574a526611d8baeb7c6ebe2af3
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