mirror of https://gitee.com/bigwinds/arangodb
Error string for remove, replace, update modified
This commit is contained in:
parent
9532f9216d
commit
3ec823c804
17
CHANGELOG
17
CHANGELOG
|
@ -30,6 +30,23 @@ v2.2.0 (XXXX-XX-XX)
|
||||||
was removed. Collections with many different attribute names should
|
was removed. Collections with many different attribute names should
|
||||||
benefit from this change by faster inserts and slightly less memory usage.
|
benefit from this change by faster inserts and slightly less memory usage.
|
||||||
|
|
||||||
|
v2.1.1 (2014-06-06)
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
* signature for collection functions was modified
|
||||||
|
|
||||||
|
The basic change was the substitution of the input parameter of the
|
||||||
|
function by an generic options object which can contain multiple
|
||||||
|
option parameter of the function.
|
||||||
|
Following functions were modified
|
||||||
|
remove
|
||||||
|
removeBySample
|
||||||
|
replace
|
||||||
|
replaceBySample
|
||||||
|
update
|
||||||
|
updateBySample
|
||||||
|
|
||||||
|
Old signature is yet supported but it will be removed in future versions
|
||||||
|
|
||||||
v2.1.0 (2014-05-29)
|
v2.1.0 (2014-05-29)
|
||||||
-------------------
|
-------------------
|
||||||
|
|
|
@ -2209,9 +2209,7 @@ static v8::Handle<v8::Value> ReplaceVocbaseCol (bool useCollection,
|
||||||
|
|
||||||
// check the arguments
|
// check the arguments
|
||||||
if (argv.Length() < 2) {
|
if (argv.Length() < 2) {
|
||||||
TRI_V8_EXCEPTION_USAGE(scope, "replace(<document>, <data>, <overwrite>, <waitForSync>) or"
|
TRI_V8_EXCEPTION_USAGE(scope, "replace(<document>, <data>, {overwrite: booleanValue, waitForSync: booleanValue})");
|
||||||
"replace(<document>, <data>, {overwrite: booleanValue, waitForSync: booleanValue})"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// we're only accepting "real" object documents
|
// we're only accepting "real" object documents
|
||||||
|
@ -2603,8 +2601,7 @@ static v8::Handle<v8::Value> UpdateVocbaseCol (bool useCollection,
|
||||||
|
|
||||||
// check the arguments
|
// check the arguments
|
||||||
if (argv.Length() < 2 || argv.Length() > 5) {
|
if (argv.Length() < 2 || argv.Length() > 5) {
|
||||||
TRI_V8_EXCEPTION_USAGE(scope, "update(<document>, <data>, <overwrite>, <keepNull>, <waitForSync>) or"
|
TRI_V8_EXCEPTION_USAGE(scope, "update(<document>, <data>, {overwrite: booleanValue, keepNull: booleanValue, waitForSync: booleanValue})");
|
||||||
"update(<document>, <data>, {overwrite: booleanValue, waitForSync: booleanValue})");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argv.Length() > 2) {
|
if (argv.Length() > 2) {
|
||||||
|
@ -2886,9 +2883,7 @@ static v8::Handle<v8::Value> RemoveVocbaseCol (bool useCollection,
|
||||||
|
|
||||||
// check the arguments
|
// check the arguments
|
||||||
if (argv.Length() < 1 || argv.Length() > 3) {
|
if (argv.Length() < 1 || argv.Length() > 3) {
|
||||||
TRI_V8_EXCEPTION_USAGE(scope, "remove(<document>, <overwrite>, <waitForSync>) or"
|
TRI_V8_EXCEPTION_USAGE(scope, "remove(<document>, <data>, {overwrite: booleanValue, waitForSync: booleanValue})");
|
||||||
"remove(<document>, <data>, {overwrite: booleanValue, waitForSync: booleanValue})"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argv.Length() > 1) {
|
if (argv.Length() > 1) {
|
||||||
|
|
Loading…
Reference in New Issue