From ad975c64fcdf3faa67cacd51665c4f95a2c5b060 Mon Sep 17 00:00:00 2001 From: Shai Berger Date: Wed, 29 Jan 2014 18:08:01 +0200 Subject: [PATCH] Made Oracle introspect boolean fields Fixed failing test schema.tests.SchemaTests.test_add_field_temp_default_boolean Refs #19884 --- django/db/backends/oracle/introspection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/db/backends/oracle/introspection.py b/django/db/backends/oracle/introspection.py index 43f61faf0a..7666f09466 100644 --- a/django/db/backends/oracle/introspection.py +++ b/django/db/backends/oracle/introspection.py @@ -36,6 +36,8 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): if data_type == cx_Oracle.NUMBER and description[5] == 0: if description[4] > 11: return 'BigIntegerField' + elif description[4]==1: + return 'BooleanField' else: return 'IntegerField' else: