Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made Oracle introspect boolean fields

Fixed failing test schema.tests.SchemaTests.test_add_field_temp_default_boolean
Refs #19884
  • Loading branch information...
commit ad975c64fcdf3faa67cacd51665c4f95a2c5b060 1 parent 8b2c1ac
@shaib shaib authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/db/backends/oracle/introspection.py
View
2  django/db/backends/oracle/introspection.py
@@ -36,6 +36,8 @@ def get_field_type(self, data_type, description):
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:
Please sign in to comment.
Something went wrong with that request. Please try again.