mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
fixed Postgresql limitOffset parameter error
This commit is contained in:
parent
ba2c2ea75f
commit
13f8dfc447
@ -43,7 +43,7 @@ public interface LimitOffsetProcesser {
|
||||
*/
|
||||
LimitOffsetProcesser POSTGRESQL = (sql, queryWrapper, limitRows, limitOffset) -> {
|
||||
if (limitRows != null && limitOffset != null) {
|
||||
sql.append(" LIMIT ").append(limitOffset).append(" OFFSET ").append(limitRows);
|
||||
sql.append(" LIMIT ").append(limitRows).append(" OFFSET ").append(limitOffset);
|
||||
} else if (limitRows != null) {
|
||||
sql.append(" LIMIT ").append(limitRows);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user