Skip to content

Commit

Permalink
Ensure sequential parameter collection.
Browse files Browse the repository at this point in the history
ExtendedQueryPostgresqlStatement.collectBindingParameters(…) now uses concatMap to collect encoded parameter values instead of flatMap to ensure a consistent parameter ordering.

[resolves #482]

Signed-off-by: Mark Paluch <mpaluch@vmware.com>
  • Loading branch information
mp911de committed Feb 16, 2022
1 parent 26cbd92 commit 1e692fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ private static void tryNextBinding(Iterator<Binding> iterator, EmitterProcessor<
private static Mono<List<ByteBuf>> collectBindingParameters(Binding binding) {

return Flux.fromIterable(binding.getParameterValues())
.flatMap(f -> {
.concatMap(f -> {
if (f == Parameter.NULL_VALUE) {
return Flux.just(Bind.NULL_VALUE);
} else {
Expand Down

0 comments on commit 1e692fc

Please sign in to comment.