]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
accommodate arbitrary embedded params in insertmanyvalues
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 15 Oct 2022 19:20:21 +0000 (15:20 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 16 Oct 2022 12:47:47 +0000 (08:47 -0400)
commit2b966de4196c8271934769337780f7d504d431cf
tree608cf4c6400faf6dccefbaefbcdd2e0db1e9bdae
parente8da50ce0f0474bc89cee15603931760cb6c55ce
accommodate arbitrary embedded params in insertmanyvalues

Fixed bug in new "insertmanyvalues" feature where INSERT that included a
subquery with :func:`_sql.bindparam` inside of it would fail to render
correctly in "insertmanyvalues" format. This affected psycopg2 most
directly as "insertmanyvalues" is used unconditionally with this driver.

Fixes: #8639
Change-Id: I67903fa86afe208899d4f23f940e0727d1be2ce3
doc/build/changelog/unreleased_20/8639.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/crud.py
test/sql/test_insert_exec.py
test/sql/test_type_expressions.py