|
|
| version 1.157, 2002/08/06 14:23:22 | version 1.158, 2002/08/07 10:25:56 |
|---|---|
| Line 40 static void get_copy_options(Request& r, | Line 40 static void get_copy_options(Request& r, |
| return; | return; |
| Value& voptions=params->as_no_junction(param_index, "options must be hash, not code"); | Value& voptions=params->as_no_junction(param_index, "options must be hash, not code"); |
| if(!voptions.is_string()) | if(!voptions.is_string()) { |
| if(Hash *options=voptions.get_hash(&method_name)) { | if(Hash *options=voptions.get_hash(&method_name)) { |
| if(Value *voffset=(Value *)options->get(*sql_offset_name)) | if(Value *voffset=(Value *)options->get(*sql_offset_name)) |
| if(voffset->is_string()) { | if(voffset->is_string()) { |
| Line 59 static void get_copy_options(Request& r, | Line 59 static void get_copy_options(Request& r, |
| throw Exception("parser.runtime", | throw Exception("parser.runtime", |
| &method_name, | &method_name, |
| "options must be hash"); | "options must be hash"); |
| } | |
| if(!limit) // zero limit = sould be 'nothing to copy', for methods zero means 'all' | |
| limit=-1; // thus fixing | |
| } | } |
| static void _create(Request& r, const String& method_name, MethodParams *params) { | static void _create(Request& r, const String& method_name, MethodParams *params) { |