Putting cases with INTO here too

This commit is contained in:
Miroslav Stampar 2013-02-14 12:35:05 +01:00
parent 4b9d8ed673
commit 0b8de94ace

View File

@ -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)