summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2017-04-05 13:06:00 -0400
committerGerrit Code Review <gerrit@awstats.zzzcomputing.com>2017-04-05 13:06:00 -0400
commit06a90199c56b612dec0c318fbc775ad4edc091a5 (patch)
tree8dde7995775dddf557056a74d6a2e1986d78bb14 /lib/sqlalchemy/dialects
parent1e7b730ce8385baaa7a9d281b40695a7b9cc586a (diff)
parent86ef507cc73ee4a0a104b334d7ce08ad045e0c76 (diff)
downloadsqlalchemy-06a90199c56b612dec0c318fbc775ad4edc091a5.tar.gz
Merge "Double percent signs based on paramstyle, not dialect"
Diffstat (limited to 'lib/sqlalchemy/dialects')
-rw-r--r--lib/sqlalchemy/dialects/mysql/mysqldb.py12
-rw-r--r--lib/sqlalchemy/dialects/postgresql/psycopg2.py11
2 files changed, 4 insertions, 19 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/mysqldb.py b/lib/sqlalchemy/dialects/mysql/mysqldb.py
index 6af860133..7941d4c41 100644
--- a/lib/sqlalchemy/dialects/mysql/mysqldb.py
+++ b/lib/sqlalchemy/dialects/mysql/mysqldb.py
@@ -64,19 +64,11 @@ class MySQLExecutionContext_mysqldb(MySQLExecutionContext):
class MySQLCompiler_mysqldb(MySQLCompiler):
- def visit_mod_binary(self, binary, operator, **kw):
- return self.process(binary.left, **kw) + " %% " + \
- self.process(binary.right, **kw)
-
- def post_process_text(self, text):
- return text.replace('%', '%%')
+ pass
class MySQLIdentifierPreparer_mysqldb(MySQLIdentifierPreparer):
-
- def _escape_identifier(self, value):
- value = value.replace(self.escape_quote, self.escape_to_quote)
- return value.replace("%", "%%")
+ pass
class MySQLDialect_mysqldb(MySQLDialect):
diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
index 50328143e..31792a492 100644
--- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py
+++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py
@@ -455,18 +455,11 @@ class PGExecutionContext_psycopg2(PGExecutionContext):
class PGCompiler_psycopg2(PGCompiler):
- def visit_mod_binary(self, binary, operator, **kw):
- return self.process(binary.left, **kw) + " %% " + \
- self.process(binary.right, **kw)
-
- def post_process_text(self, text):
- return text.replace('%', '%%')
+ pass
class PGIdentifierPreparer_psycopg2(PGIdentifierPreparer):
- def _escape_identifier(self, value):
- value = value.replace(self.escape_quote, self.escape_to_quote)
- return value.replace('%', '%%')
+ pass
class PGDialect_psycopg2(PGDialect):