Re: Enable pl/python to return records based on multiple OUT params - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Enable pl/python to return records based on multiple OUT params
Date
Msg-id 17342.1225810676@sss.pgh.pa.us
Whole thread Raw
In response to Re: Enable pl/python to return records based on multiple OUT params  (Hannu Krosing <hannu@2ndQuadrant.com>)
Responses Re: Enable pl/python to return records based on multiple OUT params  (Hannu Krosing <hannu@2ndQuadrant.com>)
List pgsql-hackers
Hannu Krosing <hannu@2ndQuadrant.com> writes:
> ... even the code currently in CVS crashes the backend for this

> py=# create or replace function add_any(in i1 anyelement, in i2
> anyelement, out t text) language plpythonu as $$
> return i1 + i2
> $$;
> CREATE FUNCTION
> py=# select * from add_any(1,2);
> server closed the connection unexpectedly

Well, that's just a stupid uninitialized-variable bug :-(
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: patch: array_ndims
Next
From: Hannu Krosing
Date:
Subject: Re: Enable pl/python to return records based on multiple OUT params