mirror of https://gitee.com/bigwinds/arangodb
fixed errors reported by jslint
This commit is contained in:
parent
4e6f6f2cbd
commit
287a6f6b49
|
@ -1,5 +1,6 @@
|
||||||
/*jshint strict: false */
|
/*jshint strict: false */
|
||||||
/*global require, exports, assertTrue, assertEqual, fail, AQL_EXECUTE, AQL_PARSE */
|
/*global require, exports, assertTrue, assertEqual, fail,
|
||||||
|
AQL_EXECUTE, AQL_PARSE, AQL_EXPLAIN, AQL_EXECUTEJSON */
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @brief aql test helper functions
|
/// @brief aql test helper functions
|
||||||
|
@ -477,7 +478,6 @@ function findReferencedNodes(plan, testNode) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getQueryMultiplePlansAndExecutions (query, bindVars, debug) {
|
function getQueryMultiplePlansAndExecutions (query, bindVars, debug) {
|
||||||
var plan;
|
|
||||||
var i;
|
var i;
|
||||||
var plans = [];
|
var plans = [];
|
||||||
var allPlans = [];
|
var allPlans = [];
|
||||||
|
@ -485,8 +485,9 @@ function getQueryMultiplePlansAndExecutions (query, bindVars, debug) {
|
||||||
var paramNone = { optimizer: { rules: [ "-all" ]}, verbosePlans: true};
|
var paramNone = { optimizer: { rules: [ "-all" ]}, verbosePlans: true};
|
||||||
var paramAllPlans = { allPlans : true, verbosePlans: true};
|
var paramAllPlans = { allPlans : true, verbosePlans: true};
|
||||||
|
|
||||||
if (debug === undefined)
|
if (debug === undefined) {
|
||||||
debug = false;
|
debug = false;
|
||||||
|
}
|
||||||
|
|
||||||
// first fetch the unmodified version
|
// first fetch the unmodified version
|
||||||
if (debug) {
|
if (debug) {
|
||||||
|
@ -506,7 +507,7 @@ function getQueryMultiplePlansAndExecutions (query, bindVars, debug) {
|
||||||
require("internal").print("Optimized Plan ["+(i+1)+"]:");
|
require("internal").print("Optimized Plan ["+(i+1)+"]:");
|
||||||
printYaml(allPlans.plans [i]);
|
printYaml(allPlans.plans [i]);
|
||||||
}
|
}
|
||||||
plans[i+1] = {'plan':allPlans.plans[i]};
|
plans[i + 1] = {'plan': allPlans.plans[i]};
|
||||||
}
|
}
|
||||||
// Now execute each of these variations.
|
// Now execute each of these variations.
|
||||||
for (i=0; i < plans.length; i++) {
|
for (i=0; i < plans.length; i++) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*jshint strict: false */
|
/*jshint strict: false */
|
||||||
/*global require, exports, module, AQL_PARSE */
|
/*global require, exports, module, AQL_PARSE, AQL_EXPLAIN */
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @brief ArangoStatement
|
/// @brief ArangoStatement
|
||||||
|
|
Loading…
Reference in New Issue