|
|
| version 1.322, 2016/09/08 16:31:35 | version 1.324, 2016/09/08 19:28:34 |
|---|---|
| Line 111 struct TableControlChars { | Line 111 struct TableControlChars { |
| if(Value* vseparator=options.get(PA_COLUMN_SEPARATOR_NAME)) { | if(Value* vseparator=options.get(PA_COLUMN_SEPARATOR_NAME)) { |
| sseparator=&vseparator->as_string(); | sseparator=&vseparator->as_string(); |
| if(sseparator->length()!=1) | if(sseparator->length()!=1) |
| throw Exception(PARSER_RUNTIME, sseparator, "separator must be one character long"); | throw Exception(PARSER_RUNTIME, sseparator, "separator must be one byte character"); |
| separator=sseparator->first_char(); | separator=sseparator->first_char(); |
| separators[0]=separator; | separators[0]=separator; |
| result++; | result++; |
| Line 122 struct TableControlChars { | Line 122 struct TableControlChars { |
| encloser=0; | encloser=0; |
| } else { | } else { |
| if(sencloser->length()!=1) | if(sencloser->length()!=1) |
| throw Exception(PARSER_RUNTIME, sencloser, "encloser must be one character long"); | throw Exception(PARSER_RUNTIME, sencloser, "encloser must be one byte character"); |
| encloser=sencloser->first_char(); | encloser=sencloser->first_char(); |
| } | } |
| result++; | result++; |
| Line 271 static void _create(Request& r, MethodPa | Line 271 static void _create(Request& r, MethodPa |
| size_t options_param_index=data_param_index+1; | size_t options_param_index=data_param_index+1; |
| if( options_param_index<params.count() && (options=params.as_hash(options_param_index)) ) { | if( options_param_index<params.count() && (options=params.as_hash(options_param_index)) ) { |
| // cloning, so that we could change | if(control_chars.load(*options)!=options->count()) |
| options=new HashStringValue(*options); | throw Exception(PARSER_RUNTIME, 0, CALLED_WITH_INVALID_OPTION); |
| control_chars.load(*options); | |
| } | } |
| // data | // data |