mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-31 03:49:02 +00:00
Fixes latest CI/CD error
This commit is contained in:
@@ -19,7 +19,7 @@ from lib.core.enums import OS
|
||||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.9.12.35"
|
||||
VERSION = "1.9.12.36"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||
|
||||
@@ -26,7 +26,6 @@ from lib.core.settings import HASHDB_FLUSH_THRESHOLD_ITEMS
|
||||
from lib.core.settings import HASHDB_FLUSH_THRESHOLD_TIME
|
||||
from lib.core.settings import HASHDB_RETRIEVE_RETRIES
|
||||
from lib.core.threads import getCurrentThreadData
|
||||
from lib.core.threads import getCurrentThreadName
|
||||
from thirdparty import six
|
||||
|
||||
class HashDB(object):
|
||||
@@ -42,10 +41,9 @@ class HashDB(object):
|
||||
|
||||
if threadData.hashDBCursor is None:
|
||||
try:
|
||||
connection = sqlite3.connect(self.filepath, timeout=3, isolation_level=None, check_same_thread=False)
|
||||
connection = sqlite3.connect(self.filepath, timeout=10, isolation_level=None, check_same_thread=False)
|
||||
self._connections.append(connection)
|
||||
threadData.hashDBCursor = connection.cursor()
|
||||
threadData.hashDBCursor.execute("PRAGMA journal_mode=WAL")
|
||||
threadData.hashDBCursor.execute("CREATE TABLE IF NOT EXISTS storage (id INTEGER PRIMARY KEY, value TEXT)")
|
||||
connection.commit()
|
||||
except Exception as ex:
|
||||
|
||||
Reference in New Issue
Block a user