The docs say, "Version 4.3.1 or higher of the `cx_Oracle`_ Python driver is 
required, although we recommend version 5.1.3 or later as these versions 
support Python 3." The advise of "4.3.1 or higher" hasn't changed since 
2007 (Django 1.0).

Shai contributed a bug fix for timedelta handling in cx_Oracle which is 
released in 5.2. Would there be any problem in bumping the required version 
of cx_Oracle and removing the workaround in Django [0]? I spotted at least 
a few other workarounds for bugs in cx_Oracle 4.x that could also be 
removed.

As far as I know, the main reason for supporting older versions of other 
drivers such as psycopg2 is to accommodate developers who want to use their 
OS packages rather than installing via pip. I'm not sure if there's an 
analogous situation for cx_Oracle and/or if upgrading presents some other 
challenges.

Our CI server is always using the latest release of cx_Oracle so it's 
unknown if older versions actually work.

Josh says:

> "there's quite a lot of fixes and features in newer cx_Oracle versions 
> that would help us out. Some:
>
>    - Explicit support for service_name as well as SID (5.1.1)
>    - Support for Oracle 12c (5.1.3)
>    - Support for python 3.5 (5.2.1)
>
> I'm not aware of any reasons for maintaining support for version 4 of 
> cx_Oracle."
>
---

[0] https://github.com/django/django/pull/7721
[1] workarounds for old cx_Oracle bugs
https://github.com/django/django/commit/1aa48898085ea16915877cc139e238a74e3f554b
 
- cx_Oracle <= 4.4.0 wrongly raises a DatabaseError for ORA-01400.
https://github.com/django/django/commit/c5d3a925c7285df4133cdb028f3a4bf44fd01e59
 
- stmtcachesize is available only in 4.3.2 and up.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/95abf3b9-91f9-4bb7-bceb-8a17ca3e7f5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to