--- parser3/src/classes/file.C 2005/08/09 08:07:07 1.133.6.2 +++ parser3/src/classes/file.C 2005/11/16 14:49:41 1.137 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_FILE_C="$Date: 2005/08/09 08:07:07 $"; +static const char * const IDENT_FILE_C="$Date: 2005/11/16 14:49:41 $"; #include "pa_config_includes.h" @@ -45,7 +45,7 @@ extern String sql_offset_name; class MFile: public Methoded { public: // VStateless_class - Value* create_new_value(Pool&) { return new VFile(); } + Value* create_new_value(Pool&, HashStringValue&) { return new VFile(); } public: // Methoded bool used_directly() { return true; } @@ -171,11 +171,9 @@ static void _load(Request& r, MethodPara if(options) { options=new HashStringValue(*options); if(Value *voffset=(Value *)options->get(sql_offset_name)) { - options->remove(sql_offset_name); offset=r.process_to_value(*voffset).as_int(); } if(Value *vlimit=(Value *)options->get(sql_limit_name)) { - options->remove(sql_limit_name); limit=r.process_to_value(*vlimit).as_int(); } // no check on options count here, see file_read