Allow SQL arguments as a list or tuple
This commit is contained in:
parent
d75533c6b6
commit
6ad3c956c9
|
@ -11,6 +11,8 @@ def sqlQuery(sqlStatement, *args):
|
|||
|
||||
if args == ():
|
||||
sqlSubmitQueue.put('')
|
||||
elif type(args[0]) in [list, tuple]:
|
||||
sqlSubmitQueue.put(args[0])
|
||||
else:
|
||||
sqlSubmitQueue.put(args)
|
||||
|
||||
|
|
Reference in New Issue
Block a user