#29541 closed Bug (fixed)

Add support for cx_Oracle 6.4

Reported by: felixxm Owned by: felixxm
Component: Database layer (models, ORM) Version: 1.11
Severity: Normal Keywords: Oracle cx_Oracle
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Django crashes with cx_Oracle 6.4. e.g. stack trace:

  File "/home/jenkins/workspace/django-oracle-2.0/database/oracle12/label/bionic/python/python3.4/django/db/backends/utils.py", line 85, in _execute
    return self.cursor.execute(sql, params)
  File "/home/jenkins/workspace/django-oracle-2.0/database/oracle12/label/bionic/python/python3.4/django/db/backends/oracle/base.py", line 500, in execute
    return self.cursor.execute(query, self._param_generator(params))
cx_Oracle.ProgrammingError: positional and named binds cannot be intermixed

Change History (5)

comment:1 Changed 20 months ago by Tim Graham

Triage Stage: UnreviewedAccepted

comment:2 Changed 20 months ago by felixxm

Has patch: set

comment:3 Changed 20 months ago by felixxm

Version: 2.01.11

Fix is quite simple, therefore IMO we can backport it to the 1.11. Simple release notes like "Added support for cx_Oracle 6.4 (:ticket:29541)." should be enough.

comment:4 Changed 20 months ago by felixxm

Anthony fixed this issue in the https://github.com/oracle/python-cx_Oracle/commit/fee92abe5a6a0937e4789d251dc50825cb434113, so it should be fixed in the next cx_Oracle version (6.4.1 ). I'm not sure if we will backport this fix to 2.0.x or 1.11.x.

comment:5 Changed 20 months ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In d7d3296:

Fixed #29541 -- Fixed Cursor.execute() crash when setinputsizes() is called without arguments wit cx_Oracle 6.4.

Note: See TracTickets for help on using tickets.
Back to Top