Kaydet (Commit) 53d97e4f authored tarafından Shai Berger's avatar Shai Berger

Made sure cursor.close() does not complain if cursor is already closed on Oracle

Refs #22483
üst 25209715
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment