Fix Bug TDI-17958 : the field value always error contains a quotation mark.Empty value insert wrong

http://jira.talendforge.org/browse/TDI-17958


git-svn-id: http://talendforge.org/svn/tos/trunk@74210 f6f1c999-d317-4740-80b0-e6d1abc6f99e
This commit is contained in:
jzhao
2011-12-09 09:04:27 +00:00
parent c03981c7d3
commit d0429bac55

View File

@@ -140,7 +140,7 @@ public class TalendString {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < padding_chars.length(); i++) {
char c = padding_chars.charAt(i);
if (!(Character.isLetterOrDigit(c) || c == '_')) {
if (!(Character.isLetterOrDigit(c) || c == '_'||Character.isWhitespace(c))) {
sb.append(escapeChar);
sb.append(c);
} else {