]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure bindparam key escaping applied in all cases
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 12 Apr 2021 18:33:50 +0000 (14:33 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 12 Apr 2021 18:33:50 +0000 (14:33 -0400)
commitf0a334903316aa1f320053e368842458f667cbf3
treec220fb647b5d4d772267afd3fa06292185256046
parentcf6f342150791ace82c6a099e8ea2923138bd61e
Ensure bindparam key escaping applied in all cases

Fixed regression where the :class:`_sql.BindParameter` object would not
properly render for an IN expression (i.e. using the "post compile" feature
in 1.4) if the object were copied from either an internal cloning
operation, or from a pickle operation, and the parameter name contained
spaces or other special characters.

Fixes: #6249
Change-Id: Icd0d4096c8fa4eb1a1d4c20f8a96d8b1ae439f0a
doc/build/changelog/unreleased_14/6249.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/sql/test_external_traversal.py