Merge pull request #1903 from GodzillaHua/master

mysql limit ? 或者 limit ?,?不进行替换,防止参数数量不匹配
This commit is contained in:
高铁
2017-09-04 15:49:45 +08:00
committed by GitHub
2 changed files with 58 additions and 0 deletions
@@ -381,6 +381,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));