Skip to content

Commit 29f09e2

Browse files
committed
Fixes #5576
1 parent 67ab79a commit 29f09e2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.7.11.3"
23+
VERSION = "1.7.12.0"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/utils/sqlalchemy.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ def fetchall(self):
116116
def execute(self, query):
117117
retVal = False
118118

119+
# Reference: https://stackoverflow.com/a/69491015
120+
if hasattr(_sqlalchemy, "text"):
121+
query = _sqlalchemy.text(query)
122+
119123
try:
120124
self.cursor = self.connector.execute(query)
121125
retVal = True

0 commit comments

Comments
 (0)