mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved PageUtils.hasUnorderedLimit.
This commit is contained in:
@@ -26,4 +26,9 @@ public class PagerUtilsTest_hasUnorderedLimit extends TestCase {
|
||||
String sql = "select * from(select * from test t limit 3) x";
|
||||
assertTrue(PagerUtils.hasUnorderedLimit(sql, JdbcConstants.MYSQL));
|
||||
}
|
||||
|
||||
public void test_true_subquery_2() throws Exception {
|
||||
String sql = "select * from (select * from test t order by id desc) z limit 100";
|
||||
assertFalse(PagerUtils.hasUnorderedLimit(sql, JdbcConstants.MYSQL));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user