Add new SPI_OK_REWRITTEN return code to SPI_execute and friends, for the
authorHeikki Linnakangas <heikki@enterprisedb.com>
Wed, 21 Jan 2009 11:02:40 +0000 (11:02 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Wed, 21 Jan 2009 11:02:40 +0000 (11:02 +0000)
commitaddd1fc7eda459ba4430d4e6a603f667e3238856
treef0921cf20d342c29e7ae6727bb5a307872c00db2
parent1158983bb029084659ab87eab860af0bf10fe8a7
Add new SPI_OK_REWRITTEN return code to SPI_execute and friends, for the
case that the command is rewritten into another type of command. The old
behavior to return the command tag of the last executed command was
pretty surprising. In PL/pgSQL, for example, it meant that if a command
was rewritten to a utility statement, FOUND wasn't set at all.
doc/src/sgml/spi.sgml
src/backend/executor/spi.c
src/include/executor/spi.h
src/pl/plpgsql/src/pl_exec.c