Commit a5c29d37 authored by Tom Lane's avatar Tom Lane

Avoid unused-variable warning in non-assert builds.

Oversight in my commit b9896198.
parent 7f3014dc
...@@ -6037,10 +6037,9 @@ deconstruct_indexquals(IndexPath *path) ...@@ -6037,10 +6037,9 @@ deconstruct_indexquals(IndexPath *path)
} }
else if (IsA(clause, NullTest)) else if (IsA(clause, NullTest))
{ {
NullTest *nt = (NullTest *) clause;
qinfo->clause_op = InvalidOid; qinfo->clause_op = InvalidOid;
Assert(match_index_to_operand((Node *) nt->arg, indexcol, index)); Assert(match_index_to_operand((Node *) ((NullTest *) clause)->arg,
indexcol, index));
qinfo->varonleft = true; qinfo->varonleft = true;
qinfo->other_operand = NULL; qinfo->other_operand = NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment