pgsql-server/ oc/src/sgml/Tag: oc/src/sgml/REL ...

Started by Tom Laneover 23 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl@postgresql.org 03/01/21 17:06:36

Modified files:
doc/src/sgml : Tag: REL7_3_STABLE spi.sgml
src/backend/executor: Tag: REL7_3_STABLE spi.c
src/backend/tcop: Tag: REL7_3_STABLE dest.c
src/include/access: Tag: REL7_3_STABLE printtup.h
src/pl/plpgsql/src: Tag: REL7_3_STABLE pl_exec.c

Log message:
Fix coredump problem in plpgsql's RETURN NEXT. When a SELECT INTO
that's selecting into a RECORD variable returns zero rows, make it
assign an all-nulls row to the RECORD; this is consistent with what
happens when the SELECT INTO target is not a RECORD. In support of
this, tweak the SPI code so that a valid tuple descriptor is returned
even when a SPI select returns no rows.