SimpleCondition basic asset assetapi case-insensitive search fails
(Doc ID 1626559.1)
Last updated on OCTOBER 15, 2020
Applies to:Oracle WebCenter Sites - Version 188.8.131.52.0 and later
Information in this document applies to any platform.
The following asset api code to search basic assets of type MyBasicAsset, having a field "myfield" with exact value of "MY_SEARCH_TERM":
Condition condition = new SimpleCondition(new ConditionExpressionImpl("myfield", OpTypeEnum.EQUALS, Arrays.asList("MY_SEARCH_TERM")));
Query query = new SimpleQuery("MyBasicAssetType", null, condition, null);
Iterable results = assetDataManager.read(query);
fails, because it yields the SQL
SELECT t0.id AS id FROM MyBasicAssetType t0 WHERE (lower(t0.myfield) = 'MY_SEARCH_TERM') AND (t0.status != 'VO')
The SQL query for this has a to_lower added, trying to make the search case insensitive but it has not added the same to_lower on the search term.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document