From 510e1b8ecf2a6f0d91d50f41f6b7fd75242273a0 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Wed, 26 Oct 2016 10:38:56 +0300 Subject: Give a hint, when [] is incorrectly used for a composite type in array. That used to be accepted, so let's try to give a hint to users on why their PL/python functions no longer work. Reviewed by Pavel Stehule. Discussion: --- src/pl/plpython/plpy_spi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pl/plpython/plpy_spi.c') diff --git a/src/pl/plpython/plpy_spi.c b/src/pl/plpython/plpy_spi.c index 09ee06d9e86..0d556a2ec28 100644 --- a/src/pl/plpython/plpy_spi.c +++ b/src/pl/plpython/plpy_spi.c @@ -264,7 +264,8 @@ PLy_spi_execute_plan(PyObject *ob, PyObject *list, long limit) plan->values[j] = plan->args[j].out.d.func(&(plan->args[j].out.d), -1, - elem); + elem, + false); } PG_CATCH(); { -- cgit v1.2.3