Fix for an Issue #260

This commit is contained in:
Miroslav Stampar 2012-11-28 17:00:26 +01:00
parent 35d1146fd1
commit a7e1e856d4

View File

@ -47,6 +47,11 @@ class Agent:
elif query.startswith("; "): elif query.startswith("; "):
query = query.replace("; ", "", 1) 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: if kb.tamperFunctions:
for function in kb.tamperFunctions: for function in kb.tamperFunctions:
query = function(payload=query) query = function(payload=query)