summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2019-02-11 20:22:27 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2019-02-11 20:22:27 +0000
commit104625941d5589ddb93da9c66217da6308c53a15 (patch)
treeda070ba25f907a72212b2f1bf23d0f2f7a417850 /lib/sqlalchemy
parentbb7b353d6f97184d2689c8c682bab5caac4ec1e7 (diff)
parent49197c7b36573d91b015019d4635071f9da1c216 (diff)
downloadsqlalchemy-104625941d5589ddb93da9c66217da6308c53a15.tar.gz
Merge "Add complete coverage and fix lower() for MySQL 88718 workaround"
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/dialects/mysql/base.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py
index 76b52e0d7..1b89a3ac6 100644
--- a/lib/sqlalchemy/dialects/mysql/base.py
+++ b/lib/sqlalchemy/dialects/mysql/base.py
@@ -2543,8 +2543,10 @@ class MySQLDialect(default.DefaultDialect):
# preserves the original table/schema casing, but SHOW CREATE
# TABLE does not. this problem is not in lower_case_table_names=1,
# but use case-insensitive matching for these two modes in any case.
+
if self._casing in (1, 2):
- lower = str.lower
+ def lower(s):
+ return s.lower()
else:
# if on case sensitive, there can be two tables referenced
# with the same name different casing, so we need to use