mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
mysql limit ? 或者 limit ?,?不进行替换,防止参数数量不匹配
This commit is contained in:
@@ -374,6 +374,8 @@ public class PagerUtils {
|
||||
if (rowCount <= count && offset <= 0) {
|
||||
return false;
|
||||
}
|
||||
} else if (check && limit.getRowCount() instanceof SQLVariantRefExpr) {
|
||||
return false;
|
||||
}
|
||||
|
||||
limit.setRowCount(new SQLIntegerExpr(count));
|
||||
|
||||
Reference in New Issue
Block a user