update regarding bug reported by Ole Rasmussen

This commit is contained in:
Miroslav Stampar 2010-04-03 19:41:47 +00:00
parent cad8f61d55
commit 4129cb22a7

View File

@ -300,6 +300,9 @@ class Agent:
elif fieldsNoSelect: elif fieldsNoSelect:
fieldsToCastStr = fieldsNoSelect fieldsToCastStr = fieldsNoSelect
if re.search("\A\w+\(.*\)", fieldsToCastStr, re.I): #function
fieldsToCastList = [fieldsToCastStr]
else:
fieldsToCastList = fieldsToCastStr.replace(", ", ",") fieldsToCastList = fieldsToCastStr.replace(", ", ",")
fieldsToCastList = fieldsToCastList.split(",") fieldsToCastList = fieldsToCastList.split(",")