Merge pull request #519 from btreecat/master
Fix DB2 Adapter for executesql and placeholders
This commit is contained in:
@@ -78,9 +78,11 @@ class DB2Adapter(BaseAdapter):
|
||||
self.connector = connector
|
||||
if do_connect: self.reconnect()
|
||||
|
||||
def execute(self,command):
|
||||
def execute(self,command,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):
|
||||
|
||||
Reference in New Issue
Block a user