From fc560f2b75b1083658cbe47a4f3ba9173c680071 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 14 Jan 2013 00:47:29 +0100 Subject: [PATCH] Minor revert and proper fix --- lib/core/agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 2bbf345ba..6b56b8ef0 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -380,7 +380,7 @@ class Agent(object): nulledCastedConcatFields = fields else: fields = fields.replace(", ", ',') - commas = [0, len(fields)] + commas = [-1, len(fields)] depth = 0 for index in xrange(len(fields)): char = fields[index] @@ -391,7 +391,7 @@ class Agent(object): elif depth == 0 and char == ',': commas.append(index) commas = sorted(commas) - fieldsSplitted = [fields[x:y].strip(",") for (x, y) in zip(commas, commas[1:])] + fieldsSplitted = [fields[x + 1:y] for (x, y) in zip(commas, commas[1:])] dbmsDelimiter = queries[Backend.getIdentifiedDbms()].delimiter.query nulledCastedFields = []