|
|
| version 1.339, 2016/12/26 20:04:05 | version 1.340, 2016/12/26 20:37:53 |
|---|---|
| Line 986 static void _hash(Request& r, MethodPara | Line 986 static void _hash(Request& r, MethodPara |
| throw Exception(PARSER_RUNTIME, 0, "value field(s) must be string or table or code"); | throw Exception(PARSER_RUNTIME, 0, "value field(s) must be string or table or code"); |
| } | } |
| if(value_type==C_STRING && value_fields.count()!=1) | if(value_type==C_STRING && value_fields.count()>1) |
| throw Exception(PARSER_RUNTIME, 0, "you can specify only one value field with option $.type[string]"); | throw Exception(PARSER_RUNTIME, 0, "you can't specify more then one value field with option $.type[string]"); |
| { | { |
| Value* key_param=¶ms[0]; | Value* key_param=¶ms[0]; |