#1280 - Update test for - Remove "order by" clause of RawSql query when executing findCount()

The code fix associated with this is in CQueryBuilder line 276
This commit is contained in:
Rob Bygrave
2018-02-26 14:41:56 +13:00
parent cec65cc888
commit 58def02cd1
@@ -228,10 +228,7 @@ public class TestRawSqlOrmQuery extends BaseTestCase {
query.order("id desc");
PagedList<Order> pagedList = query.findPagedList();
pagedList.getList();
if (!isSqlServer()) {
// sql server doesn't support order by in the count query, I wonder if we can remove it?
pagedList.getTotalCount();
}
pagedList.getTotalCount();
if (isSqlServer()) {
assertThat(sqlOf(query)).contains("select top 100 ");