We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To reproduce, just create a table with 1 record. And run the following code: Transaction method:
@Transactional public Mono<Void> test(){ return entityRepository.deleteAll() .thenMany(SelectQuery.from(Entity.class, "e").execute(lcClient)) .count() .map(cnt -> cnt) //bug = is not empty .then(); }
SelectExecution sources:
private Flux<T> executeWithoutPreSelect() { SelectMapping mapping = buildSelectMapping(); // FIXME: there is no context for transactions Flux<Map<String, Object>> fromDb = buildFinalSql(mapping, query.where, true, hasJoinMany()).execute().fetch().all(); return Flux.create((Consumer<FluxSink<T>>)sink -> { RowHandler handler = new RowHandler(mapping, sink); fromDb.doOnComplete(handler::handleEnd).subscribe(handler::handleRow, sink::error); }); }
The text was updated successfully, but these errors were encountered:
upd. presumably it's enough to add .contextWrite(sink.contextView()) before .doOnComplete
.contextWrite(sink.contextView())
.doOnComplete
Sorry, something went wrong.
SelectExecution#executeWithoutPreSelect does not pass the reactive co…
7a92ed8
…ntext to the fromDb variable, which is why transactions do not work. Fixes lecousin#28
No branches or pull requests
To reproduce, just create a table with 1 record. And run the following code:
Transaction method:
SelectExecution sources:
The text was updated successfully, but these errors were encountered: