Skip to content

Commit

Permalink
Support for String.contains(), outside OPERATION
Browse files Browse the repository at this point in the history
  • Loading branch information
hopecee authored Jan 18, 2018
1 parent 11d6b58 commit ffe9e6d
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,7 @@ else if (op == Expression.OP_LTEQ)
{
cypherText = propName + " <= " + lit.getCypherText();
}
// Surport for CONTAINS method. TODO Need to add
// public static final DyadicOperator OP_CONTAINS = new DyadicOperator("=~", 3, false);
// to datanucleus-core/src/main/java/org/datanucleus/query/expression/Expression.java
else if ("=~".equals(op.toString())) {
cypherText = propName + " =~ '(?i).*" + lit.getValue() + ".*'";
}

}

public Neo4jBooleanExpression(Neo4jBooleanExpression expr1, Neo4jBooleanExpression expr2, Expression.DyadicOperator op)
Expand Down

0 comments on commit ffe9e6d

Please sign in to comment.