Unverified Commit db91c2cf authored by shenyun's avatar shenyun Committed by GitHub

postgres的limit查询添加上偏移量limitStart (#1580)

Co-authored-by: 's avataryong.luo5 <yong.luo5@geely.com>
parent 10ae3036
...@@ -203,7 +203,7 @@ public class PostgreSqlDriver extends AbstractJdbcDriver { ...@@ -203,7 +203,7 @@ public class PostgreSqlDriver extends AbstractJdbcDriver {
if (TextUtil.isEmpty(limitEnd)) { if (TextUtil.isEmpty(limitEnd)) {
limitEnd = "100"; limitEnd = "100";
} }
optionBuilder.append(" limit ").append(limitEnd); optionBuilder.append(" offset ").append(limitStart).append(" limit ").append(limitEnd);
return optionBuilder; return optionBuilder;
} }
......
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