Fixed #21207 -- Fixed test failure on Oracle: test_cursor_contextmanager
refs #17671
This commit is contained in:
parent
8d4b1629d4
commit
0d02c54299
|
@ -59,6 +59,7 @@ from django.db.backends.oracle.client import DatabaseClient
|
||||||
from django.db.backends.oracle.creation import DatabaseCreation
|
from django.db.backends.oracle.creation import DatabaseCreation
|
||||||
from django.db.backends.oracle.introspection import DatabaseIntrospection
|
from django.db.backends.oracle.introspection import DatabaseIntrospection
|
||||||
from django.db.backends.oracle.schema import DatabaseSchemaEditor
|
from django.db.backends.oracle.schema import DatabaseSchemaEditor
|
||||||
|
from django.db.utils import InterfaceError
|
||||||
from django.utils import six, timezone
|
from django.utils import six, timezone
|
||||||
from django.utils.encoding import force_bytes, force_text
|
from django.utils.encoding import force_bytes, force_text
|
||||||
from django.utils.functional import cached_property
|
from django.utils.functional import cached_property
|
||||||
|
@ -103,6 +104,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
||||||
requires_literal_defaults = True
|
requires_literal_defaults = True
|
||||||
connection_persists_old_columns = True
|
connection_persists_old_columns = True
|
||||||
nulls_order_largest = True
|
nulls_order_largest = True
|
||||||
|
closed_cursor_error_class = InterfaceError
|
||||||
|
|
||||||
|
|
||||||
class DatabaseOperations(BaseDatabaseOperations):
|
class DatabaseOperations(BaseDatabaseOperations):
|
||||||
|
|
Loading…
Reference in New Issue