CLI
- Removed the 'ID/UUID or ID/UUID' processing from ::insertJunctions, as they are no longer needed, given ::insertIDExpr.
This commit is contained in:
18
src/CLI.cpp
18
src/CLI.cpp
@@ -1330,13 +1330,6 @@ void CLI::findOperators ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Two consecutive FILTER, ID or UUID arguments:
|
|
||||||
//
|
|
||||||
// ID ID --> ID or ID
|
|
||||||
// ID UUID --> ID or UUID
|
|
||||||
// UUID ID --> UUID or ID
|
|
||||||
// UUID UUID --> UUID or UUID
|
|
||||||
//
|
|
||||||
// Two consecutive FILTER, non-OP arguments that are not "(" or ")" need an
|
// Two consecutive FILTER, non-OP arguments that are not "(" or ")" need an
|
||||||
// "and" operator inserted between them.
|
// "and" operator inserted between them.
|
||||||
//
|
//
|
||||||
@@ -1358,17 +1351,6 @@ void CLI::insertJunctions ()
|
|||||||
if (prev == _args.begin ())
|
if (prev == _args.begin ())
|
||||||
prev = a;
|
prev = a;
|
||||||
|
|
||||||
// Insert OR between consecutive FILTER ID/UUID args.
|
|
||||||
if (a != prev &&
|
|
||||||
(prev->hasTag ("ID") || prev->hasTag ("UUID")) &&
|
|
||||||
(a->hasTag ("ID") || a->hasTag ("UUID")))
|
|
||||||
{
|
|
||||||
A opOr ("argOp", "or");
|
|
||||||
opOr.tag ("FILTER");
|
|
||||||
opOr.tag ("OP");
|
|
||||||
reconstructed.push_back (opOr);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Insert AND between terms.
|
// Insert AND between terms.
|
||||||
else if (a != prev)
|
else if (a != prev)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user