diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index 52616920b..118ddff0e 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -2230,8 +2230,13 @@ class Enumeration: if not self.alwaysRetrieveSqlOutput: message = "do you want to retrieve the SQL statement output? " - message += "[Y/n/a] " - getOutput = readInput(message, default="Y") + + if not sqlType or 'SELECT' in sqlType: + message += "[Y/n/a] " + getOutput = readInput(message, default="Y") + else: + message += "[y/N/a] " + getOutput = readInput(message, default="N") if getOutput in ("a", "A"): self.alwaysRetrieveSqlOutput = True