]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Apply percent sign escaping to op(), custom_op()
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Mar 2021 18:36:34 +0000 (13:36 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Mar 2021 18:36:34 +0000 (13:36 -0500)
commit79bde753e47bd86f0199c4aa6a5c2ead1e4aec95
treee93e70057e6123d6871f3481d7a6c53c453149f5
parent85c843bcc3ea1ca16be06fe85b03d99c4e519f3d
Apply percent sign escaping to op(), custom_op()

Fixed bug where the "percent escaping" feature that occurs with dialects
that use the "format" or "pyformat" bound parameter styles was not enabled
for the :meth:`.Operations.op` and :meth:`.Operations.custom_op` methods,
for custom operators that use percent signs. The percent sign will now be
automatically doubled based on the paramstyle as necessary.

Fixes: #6016
Change-Id: I285c5fc082481c2ee989edf1b02a83a6087ea26a
doc/build/changelog/unreleased_14/6016.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/sql/test_operators.py
test/sql/test_query.py