[Bug] Support for "CONTAINS", "STARTSWITH", "ENDSWITH" match flags was missing.
[Verification] TCT passrate 100%.
Change-Id: I709fca1587ac226c9e369824044a2338ce2ea727
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
matchValue = "4";
}
}
- query += matchValue;
+ switch (match_flag) {
+ case AttributeMatchFlag::kStartsWith :
+ query += matchValue + "%";
+ break;
+ case AttributeMatchFlag::kEndsWith :
+ query += "%" + matchValue;
+ break;
+ case AttributeMatchFlag::kContains :
+ query += "%" + matchValue + "%";
+ break;
+ default :
+ query += matchValue;
+ }
query.append("\"");
}