|
|
| version 1.215, 2005/11/18 11:00:27 | version 1.217, 2005/11/25 09:52:07 |
|---|---|
| Line 138 static void _create(Request& r, MethodPa | Line 138 static void _create(Request& r, MethodPa |
| size_t raw_pos_after=0; | size_t raw_pos_after=0; |
| Table::columns_type columns; | Table::columns_type columns; |
| if(params.count()==2) { | if(params.count()==2) { |
| String& snameless=params.as_string(0, "called with two params, first param may only be string 'nameless'"); | const String& snameless=params.as_string(0, "called with two params, first param may only be string 'nameless'"); |
| if(snameless!="nameless") | if(snameless!="nameless") |
| throw Exception("parser.runtime", | throw Exception("parser.runtime", |
| &snameless, | &snameless, |
| Line 446 static void _save(Request& r, MethodPara | Line 446 static void _save(Request& r, MethodPara |
| } | } |
| // write | // write |
| file_write(r.absolute(file_name), | { |
| sdata.cstr(), sdata.length(), true, do_append); | const char* data_cstr=sdata.cstr(); |
| file_write(r.absolute(file_name), | |
| data_cstr, sdata.length(), true, do_append); | |
| if(*data_cstr) // not empty (when empty it's not heap memory) | |
| pa_free((void*)data_cstr); // not needed anymore | |
| } | |
| } | } |
| static void _count(Request& r, MethodParams&) { | static void _count(Request& r, MethodParams&) { |