Commit 012442df authored by Quxl's avatar Quxl

x

parent 9c35a077
......@@ -23,7 +23,7 @@ public class MySqlDialect extends AbstractDialect {
long start = (page.getIndex() - 1) * page.getLimit();
long limit = page.getLimit();
String limitKeys = StringUtil.join(", as_limit.", " order by as_limit.", "", page.getLimitKey());
return "select as_limit.* from (" + sql + ") as_limit " + limitKeys + " limit " + start + ", " + limit;
return "select as_limit.* from (" + sql + ") as_limit" + limitKeys + " limit " + start + ", " + limit;
}
public String count(String sql) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment