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

Oracle schema backend, passes most tests and is pretty complete.

This commit is contained in:
Andrew Godwin
2013-08-13 20:54:57 +01:00
parent 44f907dd98
commit 157604a87f
5 changed files with 247 additions and 9 deletions

View File

@@ -167,7 +167,7 @@ class SchemaTests(TransactionTestCase):
# Ensure the field is right to begin with
columns = self.column_classes(Author)
self.assertEqual(columns['name'][0], "CharField")
self.assertEqual(columns['name'][1][6], False)
self.assertEqual(bool(columns['name'][1][6]), bool(connection.features.interprets_empty_strings_as_nulls))
# Alter the name field to a TextField
new_field = TextField(null=True)
new_field.set_attributes_from_name("name")
@@ -195,7 +195,7 @@ class SchemaTests(TransactionTestCase):
# Ensure the field is right afterwards
columns = self.column_classes(Author)
self.assertEqual(columns['name'][0], "TextField")
self.assertEqual(columns['name'][1][6], False)
self.assertEqual(columns['name'][1][6], bool(connection.features.interprets_empty_strings_as_nulls))
def test_rename(self):
"""