From 8b7f27fef3e225e0b34f0d9f1a9f20770b72d01c Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 30 Sep 2025 12:24:57 +0200 Subject: Make some use of anonymous unions [plpython] Make some use of anonymous unions, which are allowed as of C11, as examples and encouragement for future code, and to test compilers. This commit changes some structures in plpython. Reviewed-by: Chao Li Discussion: https://www.postgresql.org/message-id/flat/f00a9968-388e-4f8c-b5ef-5102e962d997%40eisentraut.org --- src/pl/plpython/plpy_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pl/plpython/plpy_exec.c') diff --git a/src/pl/plpython/plpy_exec.c b/src/pl/plpython/plpy_exec.c index fd06b9e0e4e..0117f1e77ef 100644 --- a/src/pl/plpython/plpy_exec.c +++ b/src/pl/plpython/plpy_exec.c @@ -1046,7 +1046,7 @@ PLy_modify_tuple(PLyProcedure *proc, PyObject *pltd, TriggerData *tdata, Py_INCREF(plval); /* We assume proc->result is set up to convert tuples properly */ - att = &proc->result.u.tuple.atts[attn - 1]; + att = &proc->result.tuple.atts[attn - 1]; modvalues[attn - 1] = PLy_output_convert(att, plval, -- cgit v1.2.3