diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-21 22:06:12 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-21 22:06:12 +0000 |
commit | a4482f4c4c4e052f954f4f333ae8f5ce999613ab (patch) | |
tree | f677db02aeb6836cb9eb23f0f8aa679e39c27b2b /src/backend/optimizer/plan/createplan.c | |
parent | f8d8266ac5717296ac380123e8907a3098d457ef (diff) | |
download | postgresql-a4482f4c4c4e052f954f4f333ae8f5ce999613ab.tar.gz postgresql-a4482f4c4c4e052f954f4f333ae8f5ce999613ab.zip |
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.
Diffstat (limited to 'src/backend/optimizer/plan/createplan.c')
0 files changed, 0 insertions, 0 deletions