Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.6.x] Made Oracle introspect boolean fields

Refs #19884

Backport of ad975c6 from master
  • Loading branch information...
commit 0573120cb406066041b0235a3912dc38bc9f10ef 1 parent 05cef19
Shai Berger shaib authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/db/backends/oracle/introspection.py
2  django/db/backends/oracle/introspection.py
View
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.