Skip to content

Commit

Permalink
fix iteration over row type
Browse files Browse the repository at this point in the history
  • Loading branch information
okbob committed Mar 12, 2024
1 parent 7b0e28d commit abbfe64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/check_expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ free_string_constant(PLpgSQL_checkstate *cstate, PLpgSQL_row *row)
cstate->strconstvars[varno] = NULL;
}

field = cstate->estate->datums[fnum];
field = cstate->estate->datums[varno];

if (field->dtype == PLPGSQL_DTYPE_ROW)
free_string_constant(cstate, (PLpgSQL_row *) field);
Expand Down

0 comments on commit abbfe64

Please sign in to comment.