]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
took mysql foriegn key thing out
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 6 Feb 2006 01:23:51 +0000 (01:23 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 6 Feb 2006 01:23:51 +0000 (01:23 +0000)
test/engines.py

index f53dd35de643d301ae37a2a07ef43d5d5d4d867c..3d9bd956e97bef08c08ecc35b46307b2e4c45a2b 100644 (file)
@@ -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))