]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The argument to "ESCAPE" of a LIKE operator or similar
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 24 Jun 2010 16:19:15 +0000 (12:19 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 24 Jun 2010 16:19:15 +0000 (12:19 -0400)
commit87664ce88ab8931ccaacbac3357f484069efe6e9
tree5635f38b27d3d6c489f9aeb41509a8dc890cb263
parent0adf381d994b0f374d2b6394bff5f2c423942c78
- The argument to "ESCAPE" of a LIKE operator or similar
is passed through render_literal_value(), which may
implement escaping of backslashes.  [ticket:1400]
- Postgresql render_literal_value() is overridden which escapes
backslashes, currently applies to the ESCAPE clause
of LIKE and similar expressions.
Ultimately this will have to detect the value of
"standard_conforming_strings" for full behavior.
[ticket:1400]
- MySQL render_literal_value() is overridden which escapes
backslashes, currently applies to the ESCAPE clause
of LIKE and similar expressions.   This behavior
is derived from detecting the value of
NO_BACKSLASH_ESCAPES.  [ticket:1400]
CHANGES
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/types.py
test/dialect/test_mysql.py
test/sql/test_query.py