From abbfe6498b290cd3d9cef5d66d2e5a95dbf5c1c8 Mon Sep 17 00:00:00 2001 From: "okbob@github.com" Date: Tue, 12 Mar 2024 19:58:17 +0100 Subject: [PATCH] fix iteration over row type --- src/check_expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_expr.c b/src/check_expr.c index 4889da6..07d6215 100644 --- a/src/check_expr.c +++ b/src/check_expr.c @@ -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);