git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3d1e01c) | patch
Fix oversight in initial implementation of PORTAL_ONE_RETURNING mode: we
2006年8月14日 22:57:15 +0000 (22:57 +0000)
2006年8月14日 22:57:15 +0000 (22:57 +0000)
commit 65b2f93b587be67ea1d5e4d98a99599937aa7b19
Fix oversight in initial implementation of PORTAL_ONE_RETURNING mode: we
cannot assume that there's exactly one Query in the Portal, as we can for
ONE_SELECT mode, because non-SELECT queries might have extra queries added
during rule rewrites. Fix things up so that we'll use ONE_RETURNING mode
when a Portal contains one primary (canSetTag) query and that query has
a RETURNING list. This appears to be a second showstopper reason for running
the Portal to completion before we start to hand anything back --- we want
to be sure that the rule-added queries get run too.
src/backend/commands/prepare.c diff | blob | blame | history
src/backend/executor/spi.c diff | blob | blame | history
src/backend/tcop/pquery.c diff | blob | blame | history
src/backend/utils/mmgr/portalmem.c diff | blob | blame | history
src/include/utils/portal.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /