EQL - parsing BETWEEN expressions

This commit is contained in:
Robin Bygrave
2016-07-13 09:30:00 +12:00
parent 3fad4aae2f
commit b4b6a13e75
12 changed files with 188 additions and 157 deletions
@@ -124,6 +124,15 @@ public class EqlParserTest {
assertThat(query.getGeneratedSql()).contains("where t0.name in (?, ?, ? )");
}
@Test
public void where_between() throws Exception {
Query<Customer> query = parse("where name between 'As' and 'B'");
query.findList();
assertThat(query.getGeneratedSql()).contains("where t0.name between ? and ? ");
}
private Query<Customer> parse(String raw) {
Query<Customer> query = Ebean.find(Customer.class);