mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Patch for an Issue #991
This commit is contained in:
parent
034fae0f47
commit
d726050bc4
|
@ -139,8 +139,15 @@ class HashDB(object):
|
||||||
def beginTransaction(self):
|
def beginTransaction(self):
|
||||||
threadData = getCurrentThreadData()
|
threadData = getCurrentThreadData()
|
||||||
if not threadData.inTransaction:
|
if not threadData.inTransaction:
|
||||||
self.cursor.execute("BEGIN TRANSACTION")
|
try:
|
||||||
threadData.inTransaction = True
|
self.cursor.execute("BEGIN TRANSACTION")
|
||||||
|
except:
|
||||||
|
# Reference: http://stackoverflow.com/a/25245731
|
||||||
|
self.cursor.close()
|
||||||
|
threadData.hashDBCursor = None
|
||||||
|
self.cursor.execute("BEGIN TRANSACTION")
|
||||||
|
finally:
|
||||||
|
threadData.inTransaction = True
|
||||||
|
|
||||||
def endTransaction(self):
|
def endTransaction(self):
|
||||||
threadData = getCurrentThreadData()
|
threadData = getCurrentThreadData()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user