mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for PageUtils.limit h2 support. for issue #2313
This commit is contained in:
@@ -105,7 +105,7 @@ public class PagerUtils {
|
||||
if (JdbcConstants.MYSQL.equals(dbType) || //
|
||||
JdbcConstants.MARIADB.equals(dbType) || //
|
||||
JdbcConstants.H2.equals(dbType)) {
|
||||
return limitMySqlQueryBlock((MySqlSelectQueryBlock) queryBlock, dbType, offset, count, check);
|
||||
return limitMySqlQueryBlock(queryBlock, dbType, offset, count, check);
|
||||
}
|
||||
|
||||
if (JdbcConstants.POSTGRESQL.equals(dbType)) {
|
||||
@@ -369,7 +369,7 @@ public class PagerUtils {
|
||||
return true;
|
||||
}
|
||||
|
||||
private static boolean limitMySqlQueryBlock(MySqlSelectQueryBlock queryBlock, String dbType, int offset, int count, boolean check) {
|
||||
private static boolean limitMySqlQueryBlock(SQLSelectQueryBlock queryBlock, String dbType, int offset, int count, boolean check) {
|
||||
SQLLimit limit = queryBlock.getLimit();
|
||||
if (limit != null) {
|
||||
if (offset > 0) {
|
||||
|
||||
Reference in New Issue
Block a user