- changed status to resolved
add unit tests for unicode columns with unicode foreign keys
i noticed that reflection.py UnicodeTest isnt testing reflection of foreign keys with unicode chars in them. considering all the bumps in the road the existing test revealed, we should add some tests for things like:
Column('測試_col', ForeignKey('測試_someothertable.測試_someothercolumn'))
with the chinese chars as well as the euro chars (different issues seem to arise with each).
Comments (6)
-
-
reporter - removed status
- changed status to open
added test_needs_fk to the tables, mysql fails most tests. it almost seems like mysql does not actually handle unicode schemas properly, nor does PG, including a bizarre issue where mysql wont delete from t3, even though no foreign keys reference t3!. this sounds unbelievable of course but i can't find anything wrong with what SA is sending.
-
looks like this one needs >= 5.1.something for mysql, there's some issue with unicode foreign keys in innodb tables in previous versions.
-
Restored tests in 79dafdf3d4ffe9cb56ee0b03651b92e7e7b7353e, switching depending on db support. (sqlite works fine.)
-
- changed status to resolved
-
reporter - removed milestone
Removing milestone: 0.4.0 (automated comment)
- Log in to comment
58f8db9955a850b55619a994a9e1f0e24a2b78e6 expands the reflection and insertion tests for foreign keys (including self-ref)