Schema tests and test_foreign_key_index_long_names_regression

49 views
Skip to first unread message

Maximiliano Robaina

unread,
Jun 6, 2014, 7:45:55 PM6/6/14
to django-d...@googlegroups.com
Hi,

I'm trying to figured out how the test_foreign_key_index_long_names_regression method works.
For my (using firebird backend)  this test fails with:
   
   AssertionError: u'author_foreign_key_with_rea7ef8' not found in {u'ID': {'unique': False, 'primary_key': True}}

I see that It's using get_indexes to check if a foreign key field exist as index, but get_indexes returns a different information

What am I doing wrong here or am I misinterpreting something wrong?


---
Maxi

Maximiliano Robaina

unread,
Jun 7, 2014, 11:06:38 AM6/7/14
to django-d...@googlegroups.com
I answer to myself.
The implementation of DatabaseIntrospection.get_indexes in django-firebird is so old, It come from of the first version. I fixed it and It works fine now.
I was confusing because I was seeing the implementation of oracle backend and  also seem like It retrieves just primary key and uniques.
Reply all
Reply to author
Forward
0 new messages