mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-27 09:20:37 +03:00
Bug fix
This commit is contained in:
parent
8f0807d7f9
commit
93bf8e2a13
|
@ -8,6 +8,7 @@ See the file 'doc/COPYING' for copying permission
|
||||||
import imp
|
import imp
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
import sys
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
@ -51,7 +52,7 @@ class SQLAlchemy(GenericConnector):
|
||||||
conf.direct = "%s////%s" % (_[0], os.path.abspath(self.db))
|
conf.direct = "%s////%s" % (_[0], os.path.abspath(self.db))
|
||||||
|
|
||||||
if self.dialect:
|
if self.dialect:
|
||||||
conf.direct = conf.direct.replace(conf.dbms, self.dialect)
|
conf.direct = conf.direct.replace(conf.dbms, self.dialect, 1)
|
||||||
|
|
||||||
engine = _sqlalchemy.create_engine(conf.direct, connect_args={'check_same_thread':False} if self.dialect == "sqlite" else {})
|
engine = _sqlalchemy.create_engine(conf.direct, connect_args={'check_same_thread':False} if self.dialect == "sqlite" else {})
|
||||||
self.connector = engine.connect()
|
self.connector = engine.connect()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user