Skip to content

Commit

Permalink
Support for Filter method .contains()
Browse files Browse the repository at this point in the history
  • Loading branch information
hopecee authored Jan 13, 2018
1 parent d7a59ac commit 738ac85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/org/datanucleus/query/JDOQLQueryHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ else if (dyExpr.getOperator() == Expression.OP_DISTINCT)
{
// Processed above
}
else if (dyExpr.getOperator() == Expression.OP_CONTAINS)
{
str.append(" =~ ");
}
else
{
// TODO Support other operators
Expand Down Expand Up @@ -314,4 +318,4 @@ else if (value instanceof Boolean)
throw new UnsupportedOperationException("Dont currently support " + expr.getClass().getName() + " in JDOQLHelper");
}
}
}
}

0 comments on commit 738ac85

Please sign in to comment.