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

Skip to content

Commit 0b8de94

Browse files
committed
Putting cases with INTO here too
1 parent 4b9d8ed commit 0b8de94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/generic/custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def sqlQuery(self, query):
3838
sqlType = sqlTitle
3939
break
4040

41-
if "OPENROWSET" not in query.upper() and (not sqlType or "SELECT" in sqlType):
41+
if not any(_ in query.upper() for _ in ("OPENROWSET", "INTO")) and (not sqlType or "SELECT" in sqlType):
4242
infoMsg = "fetching %s query output: '%s'" % (sqlType if sqlType is not None else "SQL", query)
4343
logger.info(infoMsg)
4444

0 commit comments

Comments
 (0)