From 0d02c5429970804068520f0dc6f0ae9fb3e08b9c Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 1 Oct 2013 12:34:19 -0400 Subject: [PATCH] Fixed #21207 -- Fixed test failure on Oracle: test_cursor_contextmanager refs #17671 --- django/db/backends/oracle/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index cb4de1dd56..9a99a07ee1 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -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.introspection import DatabaseIntrospection from django.db.backends.oracle.schema import DatabaseSchemaEditor +from django.db.utils import InterfaceError from django.utils import six, timezone from django.utils.encoding import force_bytes, force_text from django.utils.functional import cached_property @@ -103,6 +104,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): requires_literal_defaults = True connection_persists_old_columns = True nulls_order_largest = True + closed_cursor_error_class = InterfaceError class DatabaseOperations(BaseDatabaseOperations):