]> granicus.if.org Git - postgresql/commit
Fix bug noted by Bruce: FETCH in an already-aborted transaction block
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 4 Apr 2000 21:44:40 +0000 (21:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 4 Apr 2000 21:44:40 +0000 (21:44 +0000)
commit708f82f1916073ae9e7eafb661f68c19e3d65797
tree6347172ace7ed49d871ecba227543c942465b398
parent30d4f58256c89b60f1ee7c4880e628145a531801
Fix bug noted by Bruce: FETCH in an already-aborted transaction block
would crash, due to premature invocation of SetQuerySnapshot().  Clean
up problems with handling of multiple queries by splitting
pg_parse_and_plan into two routines.  The old code would not, for
example, do the right thing with END; SELECT... submitted in one query
string when it had been in transaction abort state, because it'd decide
to skip planning the SELECT before it had executed the END.  New
arrangement is simpler and doesn't force caller to plan if only
parse+rewrite is needed.
src/backend/catalog/pg_proc.c
src/backend/executor/functions.c
src/backend/executor/spi.c
src/backend/tcop/postgres.c
src/backend/tcop/utility.c
src/include/tcop/tcopprot.h