mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#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:
@@ -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 ");
|
||||
|
||||
Reference in New Issue
Block a user