From: Mike Bayer Date: Sun, 21 Dec 2008 18:30:55 +0000 (+0000) Subject: - Fixed mysql bug in exception raise when FK columns not present X-Git-Tag: rel_0_5_0~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dc7bada918db59593fea9d8ba0671e6531d5fa8;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - Fixed mysql bug in exception raise when FK columns not present during reflection. [ticket:1241] --- diff --git a/CHANGES b/CHANGES index 6f55a87065..2be11ad2e5 100644 --- a/CHANGES +++ b/CHANGES @@ -218,6 +218,10 @@ CHANGES of Oracle two-phase commit working properly with this change. +- mysql + - Fixed bug in exception raise when FK columns not present + during reflection. [ticket:1241] + - associationproxy - The association proxy properties are make themselves available at the class level, e.g. MyClass.aproxy. Previously this diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 1dc863233c..e22f242ead 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -2331,7 +2331,7 @@ class MySQLSchemaReflector(object): raise exc.InvalidRequestError( "Foreign key columns (%s) are not present on " "foreign table %s" % - (', '.join(ref_names), ref_table.fullname())) + (', '.join(ref_names), ref_table.fullname)) ref_columns = [ref_table.c[name] for name in ref_names] con_kw = {}