Skip to content

Commit

Permalink
[1.6.x] Made Oracle introspect boolean fields
Browse files Browse the repository at this point in the history
Refs #19884

Backport of ad975c6 from master
  • Loading branch information
shaib committed Jan 29, 2014
1 parent 05cef19 commit 0573120
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django/db/backends/oracle/introspection.py
Expand Up @@ -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:
Expand Down

0 comments on commit 0573120

Please sign in to comment.