diff --git a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/pagination/SkipFirstLimitHandler.java b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/pagination/SkipFirstLimitHandler.java index 819b7e98f1..cf0fca2e9d 100644 --- a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/pagination/SkipFirstLimitHandler.java +++ b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/pagination/SkipFirstLimitHandler.java @@ -55,7 +55,7 @@ public class SkipFirstLimitHandler extends AbstractLimitHandler { } } - return insertAfterSelect( sql, skipFirst.toString() ); + return insertAfterSelect( skipFirst.toString(), sql ); } @Override