mirror of
https://github.com/postgres/postgres.git
synced 2025-07-17 06:41:09 +03:00
Add new return codes SPI_OK_INSERT_RETURNING etc to the SPI API.
Fix all the standard PLs to be able to return tuples from FOO_RETURNING statements as well as utility statements that return tuples. Also, fix oversight that SPI_processed wasn't set for a utility statement returning tuples. Per recent discussion.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
*
|
||||
* spi.h
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/executor/spi.h,v 1.54 2006/07/11 18:26:11 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/include/executor/spi.h,v 1.55 2006/08/27 23:47:58 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -71,6 +71,9 @@ typedef struct
|
||||
#define SPI_OK_DELETE 8
|
||||
#define SPI_OK_UPDATE 9
|
||||
#define SPI_OK_CURSOR 10
|
||||
#define SPI_OK_INSERT_RETURNING 11
|
||||
#define SPI_OK_DELETE_RETURNING 12
|
||||
#define SPI_OK_UPDATE_RETURNING 13
|
||||
|
||||
extern DLLIMPORT uint32 SPI_processed;
|
||||
extern DLLIMPORT Oid SPI_lastoid;
|
||||
|
Reference in New Issue
Block a user