1
0
Fork 0

Error string for remove, replace, update modified

This commit is contained in:
Esteban Lombeyda 2014-06-03 14:21:11 +02:00
parent 9532f9216d
commit 3ec823c804
2 changed files with 20 additions and 8 deletions

View File

@ -30,6 +30,23 @@ v2.2.0 (XXXX-XX-XX)
was removed. Collections with many different attribute names should
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)
-------------------

View File

@ -2209,9 +2209,7 @@ static v8::Handle<v8::Value> ReplaceVocbaseCol (bool useCollection,
// check the arguments
if (argv.Length() < 2) {
TRI_V8_EXCEPTION_USAGE(scope, "replace(<document>, <data>, <overwrite>, <waitForSync>) or"
"replace(<document>, <data>, {overwrite: booleanValue, waitForSync: booleanValue})"
);
TRI_V8_EXCEPTION_USAGE(scope, "replace(<document>, <data>, {overwrite: booleanValue, waitForSync: booleanValue})");
}
// we're only accepting "real" object documents
@ -2603,8 +2601,7 @@ static v8::Handle<v8::Value> UpdateVocbaseCol (bool useCollection,
// check the arguments
if (argv.Length() < 2 || argv.Length() > 5) {
TRI_V8_EXCEPTION_USAGE(scope, "update(<document>, <data>, <overwrite>, <keepNull>, <waitForSync>) or"
"update(<document>, <data>, {overwrite: booleanValue, waitForSync: booleanValue})");
TRI_V8_EXCEPTION_USAGE(scope, "update(<document>, <data>, {overwrite: booleanValue, keepNull: booleanValue, waitForSync: booleanValue})");
}
if (argv.Length() > 2) {
@ -2886,9 +2883,7 @@ static v8::Handle<v8::Value> RemoveVocbaseCol (bool useCollection,
// check the arguments
if (argv.Length() < 1 || argv.Length() > 3) {
TRI_V8_EXCEPTION_USAGE(scope, "remove(<document>, <overwrite>, <waitForSync>) or"
"remove(<document>, <data>, {overwrite: booleanValue, waitForSync: booleanValue})"
);
TRI_V8_EXCEPTION_USAGE(scope, "remove(<document>, <data>, {overwrite: booleanValue, waitForSync: booleanValue})");
}
if (argv.Length() > 1) {