diff --git a/lib/core/agent.py b/lib/core/agent.py index 81a02062c..dd03186df 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -334,7 +334,7 @@ class Agent: elif fieldsNoSelect: concatQuery = "'%s'||%s||'%s'" % (temp.start, concatQuery, temp.stop) - if kb.dbms == "Oracle" and ( fieldsSelect or fieldsNoSelect ): + if kb.dbms == "Oracle" and " FROM " not in concatQuery and ( fieldsSelect or fieldsNoSelect ): concatQuery += " FROM DUAL" elif kb.dbms == "Microsoft SQL Server":