Skip to content

Commit 7c0507f

Browse files
committed
Support derived queries from methods named findDistinctF1AndF2ByF3().
Closes #1200.
1 parent de74b72 commit 7c0507f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/springframework/data/couchbase/core/ReactiveFindByQueryOperationSupport.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public Flux<T> all() {
176176
}).flatMapMany(ReactiveQueryResult::rowsAsObject).flatMap(row -> {
177177
String id = "";
178178
long cas = 0;
179-
if (!query.isDistinct() && distinctFields != null) {
179+
if (!query.isDistinct() && distinctFields == null) {
180180
if (row.getString(TemplateUtils.SELECT_ID) == null) {
181181
return Flux.error(new CouchbaseException(
182182
"query did not project " + TemplateUtils.SELECT_ID + ". Either use #{#n1ql.selectEntity} or project "

0 commit comments

Comments
 (0)