]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Rework autoescape to be a simple boolean; escape the escape character
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Oct 2017 22:08:05 +0000 (18:08 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 25 Oct 2017 03:11:13 +0000 (23:11 -0400)
commit654ca5463d2045d8dc74d7d790081f58554d796d
treef3202afc7f7345e9fbee321c80660a112d262cfb
parentf34b180ca9059a74c3bf1db1b79e187c3f4b81c9
Rework autoescape to be a simple boolean; escape the escape character

Reworked the new "autoescape" feature introduced in
:ref:`change_2694` in 1.2.0b2 to be fully automatic; the escape
character now defaults to a forwards slash ``"/"`` and
is applied to percent, underscore, as well as the escape
character itself, for fully automatic escaping.  The
character can also be changed using the "escape" parameter.

Change-Id: I74894a2576983c0f6eb89480c9e5727f49fa9c25
Fixes: #2694
doc/build/changelog/changelog_12.rst
doc/build/changelog/migration_12.rst
doc/build/changelog/unreleased_12/2694.rst [new file with mode: 0644]
lib/sqlalchemy/sql/operators.py
lib/sqlalchemy/testing/suite/test_select.py
test/sql/test_operators.py