Skip to content

Commit

Permalink
fix(jans-orm): fix contains in MySQL JSON array (#10051)
Browse files Browse the repository at this point in the history
* fix(jans-core): document store manager should have not null supported list by default

Signed-off-by: Yuriy Movchan <[email protected]>

* feat(jans-orm): search in top level JSON array

Merge branch 'main' of https://github.com/JanssenProject/jans into main

Signed-off-by: Yuriy Movchan <[email protected]>

---------

Signed-off-by: Yuriy Movchan <[email protected]>
Co-authored-by: YuriyZ <[email protected]>
  • Loading branch information
yurem and yuriyz authored Nov 5, 2024
1 parent c745fe2 commit fa0cb6a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,12 +396,12 @@ private ConvertedExpression convertToSqlFilterImpl(TableMapping tableMapping, Fi

private Expression<String> buildExpressionArrayPath(String pathAttributeName, int i) {
if (i == -1) {
return Expressions.constant("$.v");
return Expressions.constant("$");
} else {
if (StringHelper.isEmpty(pathAttributeName)) {
return Expressions.constant(String.format("$.v[%d]", i));
return Expressions.constant(String.format("$[%d]", i));
} else {
return Expressions.constant(String.format("$.v[%d].%s", i, pathAttributeName));
return Expressions.constant(String.format("$[%d].%s", i, pathAttributeName));
}
}
}
Expand Down

0 comments on commit fa0cb6a

Please sign in to comment.