Add second assert to guard against future changes

This isn't entirely necessary but I feel safer with it here.
pull/2640/head
Jason Petersen 2019-03-22 20:14:20 -06:00
parent 69adb627c3
commit 5baa257c91
1 changed files with 13 additions and 0 deletions

View File

@ -806,6 +806,19 @@ AddPartitionKeyRestrictionToInstance(ClauseWalkerContext *context, OpExpr *opCla
case ROWCOMPARE_NE: case ROWCOMPARE_NE:
{ {
/*
* This case should only arise when ALL list elements have this
* "strategy" number set. Skipping to the end of the list might
* protect us if that assumption is violated, and an Assert can
* notify us if it ever is...
*/
/* should see this value immediately */
Assert(btreeInterpretationCell == btreeInterpretationList->head);
/* stop processing early, would only see unsupported nodes anyhow */
btreeInterpretationCell = btreeInterpretationList->tail;
/* TODO: could add support for this, if we feel like it */ /* TODO: could add support for this, if we feel like it */
matchedOp = false; matchedOp = false;
break; break;