summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/expression.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-06-08 21:35:02 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2022-06-09 10:14:13 -0400
commitab8b4f25eebfbd2ef5819ff98dd372d5392c4b6b (patch)
tree4da3898d55d68333938396ba5f5ba8ed04e73791 /lib/sqlalchemy/sql/expression.py
parentd93f952b46c9cca557774d69442a7124c3309a2d (diff)
downloadsqlalchemy-ab8b4f25eebfbd2ef5819ff98dd372d5392c4b6b.tar.gz
restore parameter escaping for public methods
Adjusted the fix made for :ticket:`8056` which adjusted the escaping of bound parameter names with special characters such that the escaped names were translated after the SQL compilation step, which broke a published recipe on the FAQ illustrating how to merge parameter names into the string output of a compiled SQL string. The change restores the escaped names that come from ``compiled.params`` and adds a conditional parameter to :meth:`.SQLCompiler.construct_params` named ``escape_names`` that defaults to ``True``, restoring the old behavior by default. Fixes: #8113 Change-Id: I9cbedb1080bc06d51f287fd2cbf26aaab1c74653
Diffstat (limited to 'lib/sqlalchemy/sql/expression.py')
0 files changed, 0 insertions, 0 deletions