OSDN Git Service

Add a function lastval(), which returns the value returned by the
authorNeil Conway <neilc@samurai.com>
Tue, 7 Jun 2005 07:08:35 +0000 (07:08 +0000)
committerNeil Conway <neilc@samurai.com>
Tue, 7 Jun 2005 07:08:35 +0000 (07:08 +0000)
commit657c098e41b0bb29d30d13d9aa1ac858a07f3493
tree6d55885d0e4fd2dbeec8edde846fc33dcebdcebe
parentc59887f91618b95f42a33d4c62dac35165a7910a
Add a function lastval(), which returns the value returned by the
last nextval() or setval() performed by the current session. Update the
docs, add regression tests, and bump the catalog version. Patch from
Dennis Björklund, various improvements by Neil Conway.
doc/src/sgml/func.sgml
src/backend/commands/sequence.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/commands/sequence.h
src/test/regress/expected/sequence.out
src/test/regress/sql/sequence.sql