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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: f13b208) | patch
libpq: Reset singlerow flag correctly in pipeline mode
2022年10月14日 17:06:26 +0000 (19:06 +0200)
2022年10月14日 17:06:26 +0000 (19:06 +0200)
commit db1b931a4ee885ebd27bb5b335c1e461ccc34bbe
libpq: Reset singlerow flag correctly in pipeline mode

When a query whose results were requested in single-row mode is the last
in the queue by the time those results are being read, the single-row
flag was not being reset, because we were returning early from
pqPipelineProcessQueue. Move that stanza up so that the flag is always
reset at the end of sending that query's results.

Add a test for the situation.

Backpatch to 14.

Author: Denis Laxalde <denis.laxalde@dalibo.com>
Discussion: https://postgr.es/m/01af18c5-dacc-a8c8-07ee-aecc7650c3e8@dalibo.com
src/interfaces/libpq/fe-exec.c diff | blob | blame | history
src/test/modules/libpq_pipeline/libpq_pipeline.c diff | blob | blame | history
src/test/modules/libpq_pipeline/traces/singlerow.trace diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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