From a7e1e856d4a256e19da396001b9ee7a568706bf2 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 28 Nov 2012 17:00:26 +0100 Subject: [PATCH] Fix for an Issue #260 --- lib/core/agent.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/core/agent.py b/lib/core/agent.py index a3c6355d7..c70794a4e 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -47,6 +47,11 @@ class Agent: elif query.startswith("; "): query = query.replace("; ", "", 1) + if Backend.getIdentifiedDbms() in (DBMS.ORACLE,): # non-standard object(s) make problems to a database connector while returned (e.g. XMLTYPE) + _, _, _, _, _, _, fieldsToCastStr, _ = self.getFields(query) + for field in fieldsToCastStr.split(","): + query = query.replace(field, self.nullAndCastField(field)) + if kb.tamperFunctions: for function in kb.tamperFunctions: query = function(payload=query)