Skip to content

Commit

Permalink
properly do previous fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adunstan committed Mar 3, 2023
1 parent 2763172 commit bb99458
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions redis_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1801,11 +1801,11 @@ redisPlanForeignModify(PlannerInfo *root,

RelOptInfo *rrel = find_base_rel(root, resultRelation);
Bitmapset *tmpset = get_rel_all_updated_cols(root, rrel);
AttrNumber col = -1;
int colidx = -1;

while ((col = bms_next_member(tmpset, col)) >= 0)
while ((colidx = bms_next_member(tmpset, colidx)) >= 0)
{
col += FirstLowInvalidHeapAttributeNumber;
AttrNumber col = colidx + FirstLowInvalidHeapAttributeNumber;
if (col <= InvalidAttrNumber) /* shouldn't happen */
elog(ERROR, "system-column update is not supported");

Expand Down

0 comments on commit bb99458

Please sign in to comment.