mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
More fixes for EqlParserTest
This commit is contained in:
@@ -247,7 +247,7 @@ public class EqlParserTest extends BaseTestCase {
|
||||
Query<Customer> query = parse("where name = 'Rob' or (status = 'N' and smallnote is null)");
|
||||
query.findList();
|
||||
|
||||
assertSql(query).contains("where (t0.name = ? or (t0.status = ? and t0.smallnote is null ) )");
|
||||
assertSql(query).contains("where (t0.name = ? or (t0.status = ? and t0.smallnote is null))");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -267,7 +267,7 @@ public class EqlParserTest extends BaseTestCase {
|
||||
Query<Customer> query = parse("where (name = 'Rob' or status = 'N') and smallnote is null");
|
||||
query.findList();
|
||||
|
||||
assertSql(query).contains("where ((t0.name = ? or t0.status = ? ) and t0.smallnote is null )");
|
||||
assertSql(query).contains("where ((t0.name = ? or t0.status = ?) and t0.smallnote is null)");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -293,15 +293,15 @@ public class EqlParserTest extends BaseTestCase {
|
||||
|
||||
Query<Customer> query = parse("where not (name = 'Rob' and status = 'N')");
|
||||
query.findList();
|
||||
assertSql(query).contains("where not (t0.name = ? and t0.status = ? )");
|
||||
assertSql(query).contains("where not (t0.name = ? and t0.status = ?)");
|
||||
|
||||
query = parse("where not ((name = 'Rob' and status = 'N'))");
|
||||
query.findList();
|
||||
assertSql(query).contains("where not (t0.name = ? and t0.status = ? )");
|
||||
assertSql(query).contains("where not (t0.name = ? and t0.status = ?)");
|
||||
|
||||
query = parse("where not (((name = 'Rob') and (status = 'N')))");
|
||||
query.findList();
|
||||
assertSql(query).contains("where not (t0.name = ? and t0.status = ? )");
|
||||
assertSql(query).contains("where not (t0.name = ? and t0.status = ?)");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user