Skip to content

Commit 5e059ab

Browse files
committed
added check for DB2 lib
1 parent a38b3e3 commit 5e059ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/utils/deps.py

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def checkDependencies():
3939
import pyodbc
4040
elif dbmsName == DBMS.FIREBIRD:
4141
import kinterbasdb
42+
elif dbmsName == DBMS.DB2:
43+
import ibm_db_dbi
4244
except ImportError:
4345
warnMsg = "sqlmap requires '%s' third-party library " % data[1]
4446
warnMsg += "in order to directly connect to the database "

0 commit comments

Comments
 (0)