diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index 01f4960470..1a4ff172e8 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -917,6 +917,13 @@ class FormatStylePlaceholderCursor(object): def fetchall(self): return tuple(_rowfactory(r, self.cursor) for r in self.cursor.fetchall()) + def close(self): + try: + self.cursor.close() + except Database.InterfaceError: + # already closed + pass + def var(self, *args): return VariableWrapper(self.cursor.var(*args))