#27924 closed Cleanup/optimization (fixed)
Add support for cx_Oracle 5.3
| Reported by: | Tim Graham | Owned by: | Mariusz Felisiak |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | 1.11 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
cx_Oracle 5.3 causes a few test failures due to this change: "Use None instead of 0 for items in the Cursor.description attribute that do not have any validity."
Sample exception:
File "/home/jenkins/workspace/django-oracle-master/database/oragis12/label/trusty/python/python3.6/tests/gis_tests/distapp/tests.py", line 262, in test_area
for i, z in enumerate(SouthTexasZipcode.objects.annotate(area=Area('poly')).order_by('name')):
File "/home/jenkins/workspace/django-oracle-master/database/oragis12/label/trusty/python/python3.6/django/db/models/query.py", line 242, in __iter__
...
File "/home/jenkins/workspace/django-oracle-master/database/oragis12/label/trusty/python/python3.6/django/db/backends/oracle/base.py", line 547, in _rowfactory
elif precision > 0:
TypeError: '>' not supported between instances of 'NoneType' and 'int'
Change History (9)
comment:1 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 9 years ago
| Has patch: | set |
|---|
comment:3 by , 9 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
To avoid the chance of a regression in older versions of Django and because the patch isn't completely compatible with Oracle < 5.2 (supported before Django 1.11), we'll document that cx_Oracle < 5.3 is required for Django < 1.11.
comment:9 by , 9 years ago
| Summary: | GIS test failures with cx_Oracle 5.3 → Add support for cx_Oracle 5.3 |
|---|---|
| Type: | Bug → Cleanup/optimization |
| Version: | 1.10 → 1.11 |
The changes from #27822 are also required for cx_Oracle 5.3 support.
Note:
See TracTickets
for help on using tickets.
PR