bug fixed for PageUtils. for issue #1715 #1803

This commit is contained in:
wenshao
2017-07-12 01:33:38 +08:00
parent a288d1014b
commit aaa895afac
2 changed files with 12 additions and 8 deletions
@@ -40,7 +40,7 @@ public class PagerUtilsTest_Count_MySql_0 extends TestCase {
public void test_mysql_4() throws Exception {
String sql = "select distinct a.col1,a.col2 from test a";
String result = PagerUtils.count(sql, JdbcConstants.MYSQL);
Assert.assertEquals("SELECT DISTINCT COUNT(*)\n" +
assertEquals("SELECT COUNT(DISTINCT a.col1, a.col2)\n" +
"FROM test a", result);
}