Skip to content

Commit abbfe64

Browse files
committed
fix iteration over row type
1 parent 7b0e28d commit abbfe64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/check_expr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ free_string_constant(PLpgSQL_checkstate *cstate, PLpgSQL_row *row)
11791179
cstate->strconstvars[varno] = NULL;
11801180
}
11811181

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

11841184
if (field->dtype == PLPGSQL_DTYPE_ROW)
11851185
free_string_constant(cstate, (PLpgSQL_row *) field);

0 commit comments

Comments
 (0)