]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Propagate compiler kw for visit_values to parameters
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 20 Apr 2021 19:09:51 +0000 (15:09 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 20 Apr 2021 19:28:45 +0000 (15:28 -0400)
commit3a0a6e1db43a4aefd3570f2956ae2567e3062a77
treefddf3de01a9e37cb6ff4661ff78ceebeeb117ef3
parent141846612700b5355173e7883f048ffa21ad1f75
Propagate compiler kw for visit_values to parameters

Fixed issue in SQL compiler where the bound parameters set up for a
:class:`.Values` construct wouldn't be positionally tracked correctly if
inside of a :class:`_sql.CTE`, affecting database drivers that support
VALUES + ctes and use positional parameters such as SQL Server in
particular as well as asyncpg.   The fix also repairs support for
compiler flags such as ``literal_binds``.

Fixes: #6327
Change-Id: I2d549228691d0bfc10dadd0955b1549d7584db51
doc/build/changelog/unreleased_14/6327.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/sql/test_values.py