diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-11-05 19:41:56 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-11-05 19:41:56 +0000 |
commit | 0053cebea5f3803e853accafb1810afd8cb02b0e (patch) | |
tree | 39e5f8502394d93dc87c7b5ce74ab5846da45fcc /src/include/executor | |
parent | ea08e6cd5542cb269ecd3e735f1dfa3bb61fbc4f (diff) | |
download | postgresql-0053cebea5f3803e853accafb1810afd8cb02b0e.tar.gz postgresql-0053cebea5f3803e853accafb1810afd8cb02b0e.zip |
Fix coredump in plpgsql when trying to return a rowtype result.
Need to return a TupleTableSlot, not just a bare tuple.
Diffstat (limited to 'src/include/executor')
-rw-r--r-- | src/include/executor/spi.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/executor/spi.h b/src/include/executor/spi.h index fa2ea2f361f..2ea6e9bfc8f 100644 --- a/src/include/executor/spi.h +++ b/src/include/executor/spi.h @@ -2,7 +2,7 @@ * * spi.h * - * $Id: spi.h,v 1.31 2001/11/05 17:46:33 momjian Exp $ + * $Id: spi.h,v 1.32 2001/11/05 19:41:56 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -89,6 +89,8 @@ extern int SPI_freeplan(void *plan); extern HeapTuple SPI_copytuple(HeapTuple tuple); extern TupleDesc SPI_copytupledesc(TupleDesc tupdesc); +extern TupleTableSlot *SPI_copytupleintoslot(HeapTuple tuple, + TupleDesc tupdesc); extern HeapTuple SPI_modifytuple(Relation rel, HeapTuple tuple, int natts, int *attnum, Datum *Values, char *Nulls); extern int SPI_fnumber(TupleDesc tupdesc, char *fname); |