mirror of https://gitee.com/bigwinds/arangodb
don't let uniqid() queries pass without key parameter
This commit is contained in:
parent
8070f9a04f
commit
2ce97f4db8
|
@ -598,7 +598,7 @@ static v8::Handle<v8::Value> JS_SetPrefixAgency (v8::Arguments const& argv) {
|
|||
static v8::Handle<v8::Value> JS_UniqidAgency (v8::Arguments const& argv) {
|
||||
v8::HandleScope scope;
|
||||
|
||||
if (argv.Length() > 3) {
|
||||
if (argv.Length() < 1 || argv.Length() > 3) {
|
||||
TRI_V8_EXCEPTION_USAGE(scope, "uniqid(<key>, <count>, <timeout>)");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue