fixed issues 1742:dal Teradata connection issue. cursors not being closed at the end of sessions, thanks awilliman01

This commit is contained in:
mdipierro
2013-10-26 21:46:48 -05:00
parent 1865c0b1dd
commit d960513ef2
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -4046,6 +4046,12 @@ class TeradataAdapter(BaseAdapter):
self.connector = connector
if do_connect: self.reconnect()
def close(self,action='commit',really=True):
# Teradata does not implicitly close off the cursor
# leading to SQL_ACTIVE_STATEMENTS limit errors
self.cursor.close()
ConnectionPool.close(self, action, really)
def LEFT_JOIN(self):
return 'LEFT OUTER JOIN'