diff --git a/src/main/java/org/mybatis/dynamic/sql/render/RenderingStrategy.java b/src/main/java/org/mybatis/dynamic/sql/render/RenderingStrategy.java index 969a5e094..fb10ea99b 100644 --- a/src/main/java/org/mybatis/dynamic/sql/render/RenderingStrategy.java +++ b/src/main/java/org/mybatis/dynamic/sql/render/RenderingStrategy.java @@ -56,7 +56,7 @@ public String formatParameterMapKey(AtomicInteger sequence) { * @return a key used to place the parameter value in the parameter map */ public String formatParameterMapKeyForFetchFirstRows(AtomicInteger sequence) { - return formatParameterMapKeyForLimit(sequence); + return formatParameterMapKey(sequence); } /** diff --git a/src/main/java/org/mybatis/dynamic/sql/util/springbatch/SpringBatchPagingItemReaderRenderingStrategy.java b/src/main/java/org/mybatis/dynamic/sql/util/springbatch/SpringBatchPagingItemReaderRenderingStrategy.java index 791e89bfc..c87c4a03e 100644 --- a/src/main/java/org/mybatis/dynamic/sql/util/springbatch/SpringBatchPagingItemReaderRenderingStrategy.java +++ b/src/main/java/org/mybatis/dynamic/sql/util/springbatch/SpringBatchPagingItemReaderRenderingStrategy.java @@ -33,6 +33,11 @@ public String getFormattedJdbcPlaceholderForPagingParameters(String prefix, Stri + "}"; //$NON-NLS-1$ } + @Override + public String formatParameterMapKeyForFetchFirstRows(AtomicInteger sequence) { + return "_pagesize"; //$NON-NLS-1$ + } + @Override public String formatParameterMapKeyForLimit(AtomicInteger sequence) { return "_pagesize"; //$NON-NLS-1$