From 63472a96e2f118ebe19fe56bdf62a1297ec84991 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 6 Feb 2006 01:23:51 +0000 Subject: [PATCH] took mysql foriegn key thing out --- test/engines.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/engines.py b/test/engines.py index f53dd35de6..3d9bd956e9 100644 --- a/test/engines.py +++ b/test/engines.py @@ -60,8 +60,10 @@ class EngineTest(PersistTest): try: # create a join from the two tables, this insures that # theres a foreign key set up - if testbase.db.engine.__module__.endswith('mysql'): - addresses.c.remote_user_id.append_item(ForeignKey('engine_users.user_id')) + # previously, we couldnt get foreign keys out of mysql. seems like + # we can now as long as we use InnoDB +# if testbase.db.engine.__module__.endswith('mysql'): + # addresses.c.remote_user_id.append_item(ForeignKey('engine_users.user_id')) j = join(users, addresses) print str(j.onclause) self.assert_((users.c.user_id==addresses.c.remote_user_id).compare(j.onclause)) -- 2.47.2