From 0b8de94acefed54212046d46b816578e318530a4 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 14 Feb 2013 12:35:05 +0100 Subject: [PATCH] Putting cases with INTO here too --- plugins/generic/custom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)