File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2152,7 +2152,7 @@ func verifyUniqueWithinMutation(qc *queryContext) error {
2152
2152
for i := range qc .uniqueVars {
2153
2153
gmuIndex , rdfIndex := decodeIndex (i )
2154
2154
// handles cases where the mutation was pruned in updateMutations
2155
- if gmuIndex >= uint32 (len (qc .gmuList )) || qc .gmuList [gmuIndex ] == nil || uint32 ( rdfIndex ) >= uint32 (len (qc .gmuList [gmuIndex ].Set )) {
2155
+ if gmuIndex >= uint32 (len (qc .gmuList )) || qc .gmuList [gmuIndex ] == nil || rdfIndex >= uint32 (len (qc .gmuList [gmuIndex ].Set )) {
2156
2156
continue
2157
2157
}
2158
2158
pred1 := qc .gmuList [gmuIndex ].Set [rdfIndex ]
@@ -2163,7 +2163,7 @@ func verifyUniqueWithinMutation(qc *queryContext) error {
2163
2163
}
2164
2164
gmuIndex2 , rdfIndex2 := decodeIndex (j )
2165
2165
// bounds check for the second predicate, which could also have been pruned
2166
- if gmuIndex2 >= uint32 (len (qc .gmuList )) || qc .gmuList [gmuIndex2 ] == nil || uint32 ( rdfIndex2 ) >= uint32 (len (qc .gmuList [gmuIndex2 ].Set )) {
2166
+ if gmuIndex2 >= uint32 (len (qc .gmuList )) || qc .gmuList [gmuIndex2 ] == nil || rdfIndex2 >= uint32 (len (qc .gmuList [gmuIndex2 ].Set )) {
2167
2167
continue
2168
2168
}
2169
2169
pred2 := qc .gmuList [gmuIndex2 ].Set [rdfIndex2 ]
You can’t perform that action at this time.
0 commit comments