mirror of
https://github.com/django/django.git
synced 2025-08-20 02:30:24 +00:00
[1.6.x] Made Oracle introspect boolean fields
Refs #19884
Backport of ad975c64fc
from master
This commit is contained in:
parent
05cef1939e
commit
0573120cb4
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
||||||
if data_type == cx_Oracle.NUMBER and description[5] == 0:
|
if data_type == cx_Oracle.NUMBER and description[5] == 0:
|
||||||
if description[4] > 11:
|
if description[4] > 11:
|
||||||
return 'BigIntegerField'
|
return 'BigIntegerField'
|
||||||
|
elif description[4]==1:
|
||||||
|
return 'BooleanField'
|
||||||
else:
|
else:
|
||||||
return 'IntegerField'
|
return 'IntegerField'
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue