summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-11-13 18:06:35 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-11-13 18:06:35 +0000
commit6b0e697a890337b701538de77a6d07dff17618fb (patch)
treea04927f072d72087a9988318d97e4084db0b9fbc /lib/sqlalchemy/databases/mysql.py
parentcb8737e6f86352620e773cff54f5a6b41253983c (diff)
downloadsqlalchemy-6b0e697a890337b701538de77a6d07dff17618fb.tar.gz
reflect from table.fullname for schema support
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r--lib/sqlalchemy/databases/mysql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py
index 671fbaf41..325347464 100644
--- a/lib/sqlalchemy/databases/mysql.py
+++ b/lib/sqlalchemy/databases/mysql.py
@@ -315,7 +315,7 @@ class MySQLDialect(ansisql.ANSIDialect):
table.name = table.name.lower()
table.metadata.tables[table.name]= table
try:
- c = connection.execute("describe " + table.name, {})
+ c = connection.execute("describe " + table.fullname, {})
except:
raise exceptions.NoSuchTableError(table.name)
found_table = False
@@ -376,7 +376,7 @@ class MySQLDialect(ansisql.ANSIDialect):
KEY `par_ind` (`parent_id`),
CONSTRAINT `child_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `parent` (`id`) ON DELETE CASCADE\n) TYPE=InnoDB
"""
- c = connection.execute("SHOW CREATE TABLE " + table.name, {})
+ c = connection.execute("SHOW CREATE TABLE " + table.fullname, {})
desc_fetched = c.fetchone()[1]
# this can come back as unicode if use_unicode=1 in the mysql connection