#28498: Added cx_Oracle 6 support.
-------------------------------------+-------------------------------------
Reporter: felixxm | Owner: felixxm
Type: | Status: assigned
Uncategorized |
Component: Database | Version: 1.11
layer (models, ORM) |
Severity: Release | Keywords: cx_Oracle oracle
blocker |
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
cx_Oracle 6 causes a tests failures due to this change:
''Prevent closing the connection when there are any open statements or
LOBs and add new error “DPI-1054: connection cannot be closed when open
statements or LOBs exist” when this situation is detected; this is needed
to prevent crashes under certain conditions when statements or LOBs are
being acted upon while at the same time (in another thread) a connection
is being closed; it also prevents leaks of statements and LOBs when a
connection is returned to a session pool.'' (see cx_Oracle [http://cx-
oracle.readthedocs.io/en/latest/releasenotes.html#version-6-0-august-2017
release notes]).
Sample exception:
{{{
Traceback (most recent call last):
File "./runtests.py", line 478, in <module>
options.exclude_tags,
File "./runtests.py", line 286, in django_tests
extra_tests=extra_tests,
File "/home/jenkins/workspace/django-oracle-
master/database/oracle12/label/trusty/python/python3.6/django/test/runner.py",
line 601, in run_tests
old_config = self.setup_databases()
File "/home/jenkins/workspace/django-oracle-
master/database/oracle12/label/trusty/python/python3.6/django/test/runner.py",
line 548, in setup_databases
self.parallel, **kwargs
File "/home/jenkins/workspace/django-oracle-
master/database/oracle12/label/trusty/python/python3.6/django/test/utils.py",
line 176, in setup_databases
serialize=connection.settings_dict.get('TEST', {}).get('SERIALIZE',
True),
File "/home/jenkins/workspace/django-oracle-
master/database/oracle12/label/trusty/python/python3.6/django/db/backends/base/creation.py",
line 54, in create_test_db
self._create_test_db(verbosity, autoclobber, keepdb)
File "/home/jenkins/workspace/django-oracle-
master/database/oracle12/label/trusty/python/python3.6/django/db/backends/oracle/creation.py",
line 100, in _create_test_db
self._maindb_connection.close() # done with main user -- test user
and tablespaces created
File "/home/jenkins/workspace/django-oracle-
master/database/oracle12/label/trusty/python/python3.6/django/db/backends/base/base.py",
line 281, in close
self._close()
File "/home/jenkins/workspace/django-oracle-
master/database/oracle12/label/trusty/python/python3.6/django/db/backends/base/base.py",
line 243, in _close
return self.connection.close()
File "/home/jenkins/workspace/django-oracle-
master/database/oracle12/label/trusty/python/python3.6/django/db/utils.py",
line 89, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/home/jenkins/workspace/django-oracle-
master/database/oracle12/label/trusty/python/python3.6/django/db/backends/base/base.py",
line 243, in _close
return self.connection.close()
django.db.utils.DatabaseError: DPI-1054: connection cannot be closed when
open statements or LOBs exist}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28498>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.dad46fd754fb6e188f59d2bea9286ef6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.