mysql limit ? 或者 limit ?,?不进行替换,防止参数数量不匹配

This commit is contained in:
GodzillaHua
2017-08-11 21:21:01 +08:00
parent e693b08304
commit 585e4ef4ae
@@ -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));