YUKI Hiroshi
null+****@clear*****
Wed Dec 25 19:04:35 JST 2013
YUKI Hiroshi 2013-12-25 19:04:35 +0900 (Wed, 25 Dec 2013) New Revision: ffa0d1742e488afe3a9063fb6f949fd4a9d87c39 https://github.com/droonga/droonga.org/commit/ffa0d1742e488afe3a9063fb6f949fd4a9d87c39 Message: Add error information for "add" command Modified files: reference/commands/add/index.md Modified: reference/commands/add/index.md (+12 -3) =================================================================== --- reference/commands/add/index.md 2013-12-25 18:56:57 +0900 (742fe5d) +++ reference/commands/add/index.md 2013-12-25 19:04:35 +0900 (5e3269a) @@ -195,7 +195,16 @@ Value of unspecified columns will not be changed. ## Responses {#response} -This returns an array including a boolean value which means the operation was successfully done or not, as the `body`. +This returns an array with including a boolean value `true` like follwing as the response's `body`, if a record is successfully added or updated. - * `[true]`:The record was successfully added or updated. - * `[false]`:Failed to add or update a record. + [true] + +## Error types {#errors} + +### `MissingPrimaryKey` + +Means you've forgotten to specify the `key` parameter, for a table with the primary key column. + +### `InvalidValueType` + +Means you've specified mismatched type value for a column. For example, a string for a geolocation column, a string for an integer column, etc. -------------- next part -------------- HTML����������������������������...Download