Fixed DB2 adapter when using executesql and placeholders.

This commit is contained in:
Stephen Tanner
2014-10-14 17:02:10 -04:00
parent 05689aa526
commit 617abda1cc
+3 -1
View File
@@ -78,9 +78,11 @@ class DB2Adapter(BaseAdapter):
self.connector = connector
if do_connect: self.reconnect()
def execute(self,command):
def execute(self,commandi,placeholders=None):
if command[-1:]==';':
command = command[:-1]
if placeholders:
return self.log_execute(command, placeholders)
return self.log_execute(command)
def lastrowid(self,table):