Patch related to the #4188

This commit is contained in:
Miroslav Stampar
2020-05-06 00:36:18 +02:00
parent 7ab82de80f
commit 5be407edad
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ class Custom(object):
sqlType = sqlTitle
break
if not any(_ in query.upper() for _ in ("OPENROWSET", "INTO")) and (not sqlType or "SELECT" in sqlType):
if not re.search(r"\b(OPENROWSET|INTO)\b", query, re.I) and (not sqlType or "SELECT" in sqlType):
infoMsg = "fetching %s query output: '%s'" % (sqlType if sqlType is not None else "SQL", query)
logger.info(infoMsg)