mirror of https://gitee.com/bigwinds/arangodb
fixed issue #2081
This commit is contained in:
parent
016b595c6e
commit
d9d6588151
|
@ -138,6 +138,8 @@ devel
|
|||
v3.0.11 (2016-XX-XX)
|
||||
--------------------
|
||||
|
||||
* fixed issue #2081
|
||||
|
||||
* fixed issue #2038
|
||||
|
||||
|
||||
|
|
|
@ -414,13 +414,13 @@ std::vector<std::vector<arangodb::basics::AttributeName>> Condition::getConstAtt
|
|||
|
||||
if (lhs->isAttributeAccessForVariable(parts) &&
|
||||
parts.first == reference) {
|
||||
if (includeNull || (rhs->isConstant() && !rhs->isNullValue())) {
|
||||
if (includeNull || ((rhs->isConstant() || rhs->type == NODE_TYPE_REFERENCE) && !rhs->isNullValue())) {
|
||||
result.emplace_back(std::move(parts.second));
|
||||
}
|
||||
}
|
||||
else if (rhs->isAttributeAccessForVariable(parts) &&
|
||||
parts.first == reference) {
|
||||
if (includeNull || (lhs->isConstant() && !lhs->isNullValue())) {
|
||||
if (includeNull || ((lhs->isConstant() || lhs->type == NODE_TYPE_REFERENCE) && !lhs->isNullValue())) {
|
||||
result.emplace_back(std::move(parts.second));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -350,8 +350,8 @@ function findExecutionNodes (plan, nodetype) {
|
|||
if (plan.hasOwnProperty('plan')) {
|
||||
what = plan.plan;
|
||||
}
|
||||
what.nodes.forEach(function (node) {
|
||||
if (node.type === nodetype) {
|
||||
what.nodes.forEach(function(node) {
|
||||
if (nodetype === undefined || node.type === nodetype) {
|
||||
matches.push(node);
|
||||
} else if (node.type === 'SubqueryNode') {
|
||||
var subPlan = {'plan': node.subquery};
|
||||
|
|
Loading…
Reference in New Issue