Browse Source

Improved error message when using a comparison operator with a parameterized query as the value

Stefan Schmidt 6 years ago
parent
commit
2ce93a99bd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      code/Core/StatsDatabase.py

+ 2 - 1
code/Core/StatsDatabase.py

@@ -186,7 +186,8 @@ class StatsDatabase:
                     rvalue = self._execute_query_list(value)
 
                     # Do we have a comparison operator with a multiple-result query?
-                    if op is not "in" and value[0] in ['most_used', 'least_used', 'all']:
+                    if op is not "in" and value[0] in ['most_used', 'least_used', 'all', 'ipaddress_param',
+                                                       'macaddress_param']:
                         raise QueryExecutionException("The extractor '" + value[0] +
                                                       "' may return more than one result!")