Commits

Mike Bayer committed 1d18ec9

commented out unicode foriegn keys for now, not working on mysql or postgres

Comments (0)

Files changed (1)

test/sql/unicode.py

         t1 = Table('unitable1', metadata,
             Column(u'méil', Integer, primary_key=True),
             Column(u'\u6e2c\u8a66', Integer),
+            test_needs_fk=True,
             )
         t2 = Table(u'Unitéble2', metadata,
             Column(u'méil', Integer, primary_key=True, key="a"),
             Column(u'\u6e2c\u8a66', Integer, ForeignKey(u'unitable1.méil'),
-                   key="b"),
+                   key="b"
+                   ),
+                   test_needs_fk=True,
             )
         t3 = Table(u'\u6e2c\u8a66', metadata,
                    Column(u'\u6e2c\u8a66_id', Integer, primary_key=True,
                           autoincrement=False),
                    Column(u'unitable1_\u6e2c\u8a66', Integer,
-                          ForeignKey(u'unitable1.\u6e2c\u8a66')),
+                          #ForeignKey(u'unitable1.\u6e2c\u8a66')
+                          ),
                    Column(u'Unitéble2_b', Integer,
-                          ForeignKey(u'Unitéble2.b')),
+                         # ForeignKey(u'Unitéble2.b')
+                          ),
                    Column(u'\u6e2c\u8a66_self', Integer,
-                          ForeignKey(u'\u6e2c\u8a66.\u6e2c\u8a66_id')))
+                        #  ForeignKey(u'\u6e2c\u8a66.\u6e2c\u8a66_id')
+                          ),
+                          test_needs_fk=True,
+                          
+                          )
         metadata.create_all()
 
     @testing.unsupported('oracle')