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:
@@ -21,4 +21,9 @@ public class PagerUtilsTest_hasUnorderedLimit extends TestCase {
|
||||
String sql = " select * from test t limit 3";
|
||||
assertTrue(PagerUtils.hasUnorderedLimit(sql, JdbcConstants.MYSQL));
|
||||
}
|
||||
|
||||
public void test_true_subquery() throws Exception {
|
||||
String sql = "select * from(select * from test t limit 3) x";
|
||||
assertTrue(PagerUtils.hasUnorderedLimit(sql, JdbcConstants.MYSQL));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user