#374 - MsSqlServer - adjust tests (due to jdbc batch support etc) add in support for unique index handling

This commit is contained in:
Robin Bygrave
2015-08-06 21:49:04 +12:00
parent 3a9668fe6c
commit 1dd0841f00
31 changed files with 586 additions and 360 deletions
@@ -10,22 +10,22 @@ import com.avaje.tests.model.basic.ResetBasicData;
public class TestQueryLimitOffsetSimple extends BaseTestCase {
/**
* Test the syntax of the limit offset clause.
*/
/**
* Test the syntax of the limit offset clause.
*/
@Test
public void testMe() {
ResetBasicData.reset();
Query<Order> query = Ebean.createQuery(Order.class, "where status = :A limit 100 offset 3");
query.setParameter("A",Order.Status.NEW);
query
.setFirstRow(10)
//.setMaxRows(100)
.findList();
}
public void testMe() {
ResetBasicData.reset();
Query<Order> query = Ebean.createQuery(Order.class, "where status = :A limit 100 offset 3");
query.setParameter("A", Order.Status.NEW);
query
.setFirstRow(10)
.order().asc("id")
.findList();
}
}
@@ -14,6 +14,8 @@ public class TestOrderByWithFunction extends BaseTestCase {
@Test
public void testWithFunction() {
if (isMsSqlServer()) return;
ResetBasicData.reset();
Query<Customer> query = Ebean.find(Customer.class).order("length(name),name");