diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-01-05 16:08:12 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-01-05 16:08:12 +0000 |
commit | 29df16432d4cf8ed522c1172578fc8c2f95da6f2 (patch) | |
tree | 14bcd555e8dbf266126673076ae7669e0422d915 /lib/sqlalchemy/databases/mysql.py | |
parent | ec344ebf72a6f361a192a61e35d8f8491ed41889 (diff) | |
download | sqlalchemy-29df16432d4cf8ed522c1172578fc8c2f95da6f2.tar.gz |
assume table.schema, not None, when constraint reflection has no explicit schema. unit test TBD.
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r-- | lib/sqlalchemy/databases/mysql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 1b977dce9..045225c93 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -2306,7 +2306,7 @@ class MySQLSchemaReflector(object): for spec in constraints: # only FOREIGN KEYs ref_name = spec['table'][-1] - ref_schema = len(spec['table']) > 1 and spec['table'][-2] or None + ref_schema = len(spec['table']) > 1 and spec['table'][-2] or table.schema if not ref_schema: if default_schema is None: |