|
|
| version 1.347, 2019/09/06 10:17:07 | version 1.349, 2019/11/23 23:48:41 |
|---|---|
| Line 406 static void _load(Request& r, MethodPara | Line 406 static void _load(Request& r, MethodPara |
| HashStringValue *options=0; | HashStringValue *options=0; |
| TableControlChars control_chars; | TableControlChars control_chars; |
| if(options_param_index<params.count() | if(options_param_index<params.count() && (options=params.as_hash(options_param_index))) |
| && (options=params.as_hash(options_param_index))) { | |
| // cloning, so that we could change [to simplify checks on params inside file_read_text | |
| options=new HashStringValue(*options); | |
| control_chars.load(*options); | control_chars.load(*options); |
| } | |
| // loading text | // loading text |
| char *data=file_load_text(r, r.absolute(params.as_string(filename_param_index, FILE_NAME_MUST_BE_STRING)), true, options); | char *data=file_load_text(r, r.absolute(params.as_string(filename_param_index, FILE_NAME_MUST_BE_STRING)), true, options); |
| Line 1296 public: | Line 1292 public: |
| return true; | return true; |
| } | } |
| } | } |
| bool before_rows(SQL_Error& error) { | bool before_rows(SQL_Error& error) { |
| if(table) { | |
| error=SQL_Error("result must contain exactly one table"); | |
| return true; | |
| } | |
| try { | try { |
| table=new Table(&columns); | table=new Table(&columns); |
| columns_count=columns.count(); | columns_count=columns.count(); |