Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a5c29d3

Browse files
committed
Avoid unused-variable warning in non-assert builds.
Oversight in my commit b989619.
1 parent 7f3014d commit a5c29d3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/backend/utils/adt/selfuncs.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6037,10 +6037,9 @@ deconstruct_indexquals(IndexPath *path)
60376037
}
60386038
else if (IsA(clause, NullTest))
60396039
{
6040-
NullTest *nt = (NullTest *) clause;
6041-
60426040
qinfo->clause_op = InvalidOid;
6043-
Assert(match_index_to_operand((Node *) nt->arg, indexcol, index));
6041+
Assert(match_index_to_operand((Node *) ((NullTest *) clause)->arg,
6042+
indexcol, index));
60446043
qinfo->varonleft = true;
60456044
qinfo->other_operand = NULL;
60466045
}

0 commit comments

Comments
 (0)