1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-22 23:02:54 +03:00

Avoid unused-variable warning in non-assert builds.

Oversight in my commit b9896198cfbc1b0cd0c631d2af72ffe34bd4c7e5.
This commit is contained in:
Tom Lane 2015-03-04 22:00:36 -05:00
parent 7f3014dce5
commit a5c29d37aa

View File

@ -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;
} }