Skip to content

Commit

Permalink
Better pattern for fetch first
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgbutler committed Oct 24, 2024
1 parent 8d61446 commit adc2931
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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$
Expand Down

0 comments on commit adc2931

Please sign in to comment.