mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-11 19:23:45 +03:00
Fixes #1630
This commit is contained in:
parent
42066cfb3d
commit
03160d99eb
|
@ -38,6 +38,7 @@ class HashDB(object):
|
||||||
connection = sqlite3.connect(self.filepath, timeout=3, isolation_level=None)
|
connection = sqlite3.connect(self.filepath, timeout=3, isolation_level=None)
|
||||||
threadData.hashDBCursor = connection.cursor()
|
threadData.hashDBCursor = connection.cursor()
|
||||||
threadData.hashDBCursor.execute("CREATE TABLE IF NOT EXISTS storage (id INTEGER PRIMARY KEY, value TEXT)")
|
threadData.hashDBCursor.execute("CREATE TABLE IF NOT EXISTS storage (id INTEGER PRIMARY KEY, value TEXT)")
|
||||||
|
connection.commit()
|
||||||
except Exception, ex:
|
except Exception, ex:
|
||||||
errMsg = "error occurred while opening a session "
|
errMsg = "error occurred while opening a session "
|
||||||
errMsg += "file '%s' ('%s')" % (self.filepath, ex)
|
errMsg += "file '%s' ('%s')" % (self.filepath, ex)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user