Permalink
Browse files

[1.6.x] Made Oracle introspect boolean fields

Refs #19884

Backport of ad975c6 from master
  • Loading branch information...
1 parent 05cef19 commit 0573120cb406066041b0235a3912dc38bc9f10ef @shaib shaib committed Jan 29, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 django/db/backends/oracle/introspection.py
@@ -33,6 +33,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:

0 comments on commit 0573120

Please sign in to comment.