]> granicus.if.org Git - postgresql/commit
Tweak pg_exec_query_string so that we close down transaction command
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Feb 2002 23:16:07 +0000 (23:16 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Feb 2002 23:16:07 +0000 (23:16 +0000)
commitfdc60bd9d912af7e507705d87ed70f6f8c5fbd5b
tree09b58e2fb37c4adb291483f18cf26c9ee0429ca3
parent36addaff3d08a16c2dd8346bece5031a95c9ade5
Tweak pg_exec_query_string so that we close down transaction command
before reporting command-complete message for the final command of a
query string.  This way, any errors detected during finish_xact_command
(such as RI violations) will appear to be part of the final command,
rather than coming out after the command is reported complete.  This
avoids confusing PQendcopy and other not-overly-bright clients.
Per Lee Harr's bug report of 25-Feb-02.
src/backend/tcop/postgres.c