1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

[1.7.x] Fixed #22816 -- Corrected Oracle feature flag and fixed introspection test

Backport of 6122904 from master
This commit is contained in:
Shai Berger
2014-06-14 00:43:49 +03:00
parent 1cb5dfe05f
commit 4b922b8094
3 changed files with 6 additions and 4 deletions

View File

@@ -73,15 +73,14 @@ class IntrospectionTests(TestCase):
[30, 30, 75]
)
# The following test fails on Oracle. Since it forces null=True under the
# hood in some cases, its idea about null_ok is different from ours.
@skipUnlessDBFeature('can_introspect_null')
def test_get_table_description_nullable(self):
with connection.cursor() as cursor:
desc = connection.introspection.get_table_description(cursor, Reporter._meta.db_table)
nullable_by_backend = connection.features.interprets_empty_strings_as_nulls
self.assertEqual(
[r[6] for r in desc],
[False, False, False, False, True, True]
[False, nullable_by_backend, nullable_by_backend, nullable_by_backend, True, True]
)
# Regression test for #9991 - 'real' types in postgres