|
|
| version 1.271, 2010/05/16 22:12:50 | version 1.272, 2010/07/05 05:54:46 |
|---|---|
| Line 106 static Table::Action_options get_action_ | Line 106 static Table::Action_options get_action_ |
| } | } |
| if(valid_options!=options->count()) | if(valid_options!=options->count()) |
| throw Exception(PARSER_RUNTIME, | throw Exception(PARSER_RUNTIME, 0, CALLED_WITH_INVALID_OPTION); |
| 0, | |
| "called with invalid option"); | |
| return result; | return result; |
| } | } |
| Line 464 static void _save(Request& r, MethodPara | Line 462 static void _save(Request& r, MethodPara |
| if(HashStringValue* options=voptions.get_hash()) { | if(HashStringValue* options=voptions.get_hash()) { |
| int valid_options=separators.load(*options); | int valid_options=separators.load(*options); |
| if(valid_options!=options->count()) | if(valid_options!=options->count()) |
| throw Exception(PARSER_RUNTIME, | throw Exception(PARSER_RUNTIME, 0, CALLED_WITH_INVALID_OPTION); |
| 0, | |
| INVALID_OPTION_PASSED); | |
| } else { | } else { |
| throw Exception(PARSER_RUNTIME, | throw Exception(PARSER_RUNTIME, |
| 0, | 0, |
| Line 789 static void _hash(Request& r, MethodPara | Line 785 static void _hash(Request& r, MethodPara |
| } | } |
| if(valid_options!=options->count()) | if(valid_options!=options->count()) |
| throw Exception(PARSER_RUNTIME, | throw Exception(PARSER_RUNTIME, 0, CALLED_WITH_INVALID_OPTION); |
| 0, | |
| "called with invalid option"); | |
| } | } |
| } | } |
| if(param_index==2) // options was specified but not as hash | if(param_index==2) // options was specified but not as hash |
| throw Exception(PARSER_RUNTIME, | throw Exception(PARSER_RUNTIME, 0, OPTIONS_MUST_BE_HASH); |
| 0, | |
| "options must be hash"); | |
| Array<int> value_fields; | Array<int> value_fields; |
| if(param_index==0){ // list of columns wasn't specified | if(param_index==0){ // list of columns wasn't specified |
| Line 1155 static void _sql(Request& r, MethodParam | Line 1147 static void _sql(Request& r, MethodParam |
| offset=(ulong)r.process_to_value(*voffset).as_double(); | offset=(ulong)r.process_to_value(*voffset).as_double(); |
| } | } |
| if(valid_options!=options->count()) | if(valid_options!=options->count()) |
| throw Exception(PARSER_RUNTIME, | throw Exception(PARSER_RUNTIME, 0, CALLED_WITH_INVALID_OPTION); |
| 0, | |
| "called with invalid option"); | |
| } else | } else |
| throw Exception(PARSER_RUNTIME, | throw Exception(PARSER_RUNTIME, 0, OPTIONS_MUST_BE_HASH); |
| 0, | |
| "options must be hash"); | |
| } | } |
| SQL_Driver::Placeholder* placeholders=0; | SQL_Driver::Placeholder* placeholders=0; |