diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2019-02-11 20:22:27 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2019-02-11 20:22:27 +0000 |
| commit | 104625941d5589ddb93da9c66217da6308c53a15 (patch) | |
| tree | da070ba25f907a72212b2f1bf23d0f2f7a417850 /lib/sqlalchemy | |
| parent | bb7b353d6f97184d2689c8c682bab5caac4ec1e7 (diff) | |
| parent | 49197c7b36573d91b015019d4635071f9da1c216 (diff) | |
| download | sqlalchemy-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.py | 4 |
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 |
