pgsql-server/ oc/src/sgml/Tag: oc/src/sgml/REL ...
pgsql-server/ oc/src/sgml/Tag: oc/src/sgml/REL ...
От:
tgl@postgresql.org (Tom Lane)
Дата:
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.