From 960863906680b4a2fd4c27fff58e8a5939ea35f1 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 19 Mar 2010 20:20:18 -0400 Subject: [PATCH] - Fixed import error which could occur reflecting tables on a Windows host [ticket:1580] --- CHANGES | 3 +++ lib/sqlalchemy/dialects/mysql/base.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 0d874278d6..32a0e40783 100644 --- a/CHANGES +++ b/CHANGES @@ -364,6 +364,9 @@ CHANGES - Added reflection/create table support for a wide range of MySQL keywords. [ticket:1634] + + - Fixed import error which could occur reflecting tables on + a Windows host [ticket:1580] - mssql - Re-established initial support for pymssql (not functional diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py index df4a666fbe..873dfd16c7 100644 --- a/lib/sqlalchemy/dialects/mysql/base.py +++ b/lib/sqlalchemy/dialects/mysql/base.py @@ -1942,7 +1942,7 @@ class MySQLDialect(default.DefaultDialect): # For winxx database hosts. TODO: is this really needed? if casing == 1 and table.name != table.name.lower(): table.name = table.name.lower() - lc_alias = schema._get_table_key(table.name, table.schema) + lc_alias = sa_schema._get_table_key(table.name, table.schema) table.metadata.tables[lc_alias] = table def _detect_charset(self, connection): -- 2.47.3