]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Apply percent sign escaping to literal binds, comments
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 25 Aug 2017 19:26:02 +0000 (15:26 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 25 Aug 2017 20:53:49 +0000 (16:53 -0400)
commit2392ae1900f112c44ed966783d1dedfb88f13353
tree405791ed1dacde958b0e5be9f4a36bd66190345e
parent887fb3ebaad20847edc752f5fcf072ace947d56a
Apply percent sign escaping to literal binds, comments

Fixed bug in new percent-sign support (e.g. :ticket:`3740`) where a bound
parameter rendered with literal_binds would fail to escape percent-signs
for relevant dialects.  In addition, ensured new table / column comment
support feature also fully makes use of literal-rendered parameters so that
this percent sign support takes place with table / column comment DDL as
well, allowing percent sign support for the mysql / psycopg2 backends that
require escaping of percent signs.

Change-Id: Ia4136a300933e9bc6a01a7b9afd5c7b9a3fee4e3
Fixes: #4054
Fixes: #4052
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/testing/suite/test_reflection.py
lib/sqlalchemy/testing/suite/test_types.py
test/dialect/mysql/test_reflection.py
test/sql/test_text.py