]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Double percent signs based on paramstyle, not dialect
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 4 Jul 2016 19:54:29 +0000 (15:54 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 5 Apr 2017 16:18:36 +0000 (12:18 -0400)
commit86ef507cc73ee4a0a104b334d7ce08ad045e0c76
treea077e8f2de416e7a2affb898a13982f8136ad8ba
parent87b1404eda0f6d2e99b3b2a01ae1c641fbe91311
Double percent signs based on paramstyle, not dialect

This patch moves the "doubling" of percent signs into
the base compiler and makes it completely a product
of whether or not the paramstyle is format/pyformat or
not.   Without this paramstyle, percent signs
are not doubled across text(), literal_column(), and
column().

Change-Id: Ie2f278ab1dbb94b5078f85c0096d74dbfa049197
Fixes: #3740
doc/build/changelog/changelog_12.rst
doc/build/changelog/migration_12.rst
doc/build/core/tutorial.rst
lib/sqlalchemy/dialects/mysql/mysqldb.py
lib/sqlalchemy/dialects/postgresql/psycopg2.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/testing/suite/test_dialect.py
test/sql/test_operators.py
test/sql/test_quote.py
test/sql/test_text.py