diff --git a/plugins/generic/custom.py b/plugins/generic/custom.py index 38f66f623..aa76a745f 100644 --- a/plugins/generic/custom.py +++ b/plugins/generic/custom.py @@ -38,7 +38,7 @@ class Custom: sqlType = sqlTitle break - if "OPENROWSET" not in query.upper() and (not sqlType or "SELECT" in sqlType): + if not any(_ in query.upper() for _ in ("OPENROWSET", "INTO")) 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)