Skip to content

Commit b0d96fc

Browse files
authored
Fix handling of collections in N1qlJoinResolver. (#1587)
Closes #1566.
1 parent c4335de commit b0d96fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/springframework/data/couchbase/core/convert/join/N1qlJoinResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static KeySpacePair getKeySpacePair(String bucketName, String scope, String coll
145145
// Use the lhScope and lhCollection for the entity. The rhs is just the bucket.
146146
return new KeySpacePair(lhCollection, x(i(bucketName) + "." + i(lhScope) + "." + i(lhCollection)), //
147147
null, i(bucketName));
148-
} else if (lhCollection != null && rhCollection == null) {
148+
} else if (lhCollection == null && rhCollection != null) {
149149
// the lhs does not have a collection (or scope), but rhs does have a collection
150150
// Using the same (default) scope for the rhs would mean specifying a
151151
// non-default collection in a default scope - which is not allowed.

0 commit comments

Comments
 (0)