Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 534f51f

Browse files
committed
Minor bug fix
1 parent e4e9b11 commit 534f51f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/core/agent.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,10 @@ def forgeCaseStatement(self, expression):
670670
@rtype: C{str}
671671
"""
672672

673-
return queries[getIdentifiedDBMS()].case.query % expression
673+
if getIdentifiedDBMS() is not None and hasattr(queries[getIdentifiedDBMS()], "case"):
674+
return queries[getIdentifiedDBMS()].case.query % expression
675+
else:
676+
return expression
674677

675678
def addPayloadDelimiters(self, inpStr):
676679
"""

0 commit comments

Comments
 (0)