mirror of https://github.com/apache/lucene.git
don't default an encapsulator for split CSV fields
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@610032 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
02909676f7
commit
7c660c8526
|
@ -322,9 +322,11 @@ abstract class CSVLoader {
|
|||
String sepStr = params.getFieldParam(fname,SEPARATOR);
|
||||
char fsep = sepStr==null || sepStr.length()==0 ? ',' : sepStr.charAt(0);
|
||||
String encStr = params.getFieldParam(fname,ENCAPSULATOR);
|
||||
char fenc = encStr==null || encStr.length()==0 ? '\'' : encStr.charAt(0);
|
||||
char fenc = encStr==null || encStr.length()==0 ? (char)-2 : encStr.charAt(0);
|
||||
String escStr = params.getFieldParam(fname,ESCAPE);
|
||||
char fesc = escStr==null || encStr.length()==0 ? CSVStrategy.ESCAPE_DISABLED : escStr.charAt(0);
|
||||
|
||||
CSVStrategy fstrat = new CSVStrategy(fsep,fenc,CSVStrategy.COMMENTS_DISABLED);
|
||||
CSVStrategy fstrat = new CSVStrategy(fsep,fenc,CSVStrategy.COMMENTS_DISABLED,fesc, false, false, false, false);
|
||||
adders[i] = new CSVLoader.FieldSplitter(fstrat, adders[i]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue