Arithmetic fix for preceding commit
This commit is contained in:
parent
6ce3ce6b22
commit
48c0a2ae2e
|
@ -33,7 +33,7 @@ def sqlExecuteChunked(sqlStatement, idCount, *args):
|
||||||
for i in range(len(args)-idCount, len(args), sqlExecuteChunked.chunkSize - (len(args)-idCount)):
|
for i in range(len(args)-idCount, len(args), sqlExecuteChunked.chunkSize - (len(args)-idCount)):
|
||||||
sqlSubmitQueue.put(sqlStatement)
|
sqlSubmitQueue.put(sqlStatement)
|
||||||
# first static args, and then iterative chunk
|
# first static args, and then iterative chunk
|
||||||
sqlSubmitQueue.put(args[0:len(args)-idCount] + args[i:i+sqlExecuteChunked.chunkSize - len(args)-idCount])
|
sqlSubmitQueue.put(args[0:len(args)-idCount] + args[i:i+sqlExecuteChunked.chunkSize - (len(args)-idCount)])
|
||||||
retVal = sqlReturnQueue.get()
|
retVal = sqlReturnQueue.get()
|
||||||
totalRowCount += retVal[1]
|
totalRowCount += retVal[1]
|
||||||
sqlSubmitQueue.put('commit')
|
sqlSubmitQueue.put('commit')
|
||||||
|
|
Reference in New Issue
Block a user