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

View File

@@ -1 +1 @@
Version 2.7.4-stable+timestamp.2013.10.23.20.12.15
Version 2.7.4-stable+timestamp.2013.10.26.21.45.59

View File

@@ -513,7 +513,7 @@
if(flash.html()) flash.append('<span id="closeflash"> &times; </span>').slideDown();
},
hide_flash: function () {
$('.flash').hide().html('');
$('.flash').fadeOut(0).html('');
},
show_if_handler: function (target) {
var triggers = {};

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'