]> granicus.if.org Git - postgresql/commit
Add new SPI_OK_REWRITTEN return code to SPI_execute and friends, for the
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 21 Jan 2009 11:02:40 +0000 (11:02 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 21 Jan 2009 11:02:40 +0000 (11:02 +0000)
commit94136d5a18403445cd60ae6beb470f6ebecca8b3
tree96999d4189dbaf14033fa70cad6cf9d0ae904904
parent0154345078fb96a8bbe8b8785628400b17e5a75b
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