|
|
| version 1.208, 2013/08/22 15:57:01 | version 1.210, 2013/10/10 22:12:48 |
|---|---|
| Line 507 public: | Line 507 public: |
| } | } |
| bool before_rows(SQL_Error& /*error*/ ) { /* ignore */ return false; } | bool before_rows(SQL_Error& /*error*/ ) { /* ignore */ return false; } |
| bool add_row(SQL_Error& /*error*/) { /* ignore */ return false; } | bool add_row(SQL_Error& /*error*/) { /* ignore */ return false; } |
| bool add_row_cell(SQL_Error& error, const char* str, size_t length) { | bool add_row_cell(SQL_Error& error, const char* str, size_t) { |
| if(got_cell) { | if(got_cell) { |
| error=SQL_Error(PARSER_RUNTIME, | error=SQL_Error(PARSER_RUNTIME, |
| //statement_string, | //statement_string, |
| Line 659 static void _save(Request& r, MethodPara | Line 659 static void _save(Request& r, MethodPara |
| const String& file_name=params.as_string(file_name_index, FILE_NAME_MUST_BE_STRING); | const String& file_name=params.as_string(file_name_index, FILE_NAME_MUST_BE_STRING); |
| const String& src=GET_SELF(r, VString).string(); | const String& src=GET_SELF(r, VString).string(); |
| String::Body sbody=src.cstr_to_string_body_untaint(String::L_AS_IS, r.connection(false/*no error if none*/)); | String::Body sbody=src.cstr_to_string_body_untaint(String::L_AS_IS, r.connection(false), &r.charsets); |
| // write | // write |
| file_write(r.charsets, r.absolute(file_name), sbody.cstr(), sbody.length(), true, do_append, asked_charset); | file_write(r.charsets, r.absolute(file_name), sbody.cstr(), sbody.length(), true, do_append, asked_charset); |