mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
This patch makes the EXECUTE command's completion tag return the
completion tag of the actual statement executed. This allows the correct update count to be returned for UPDATE/INSERT/DELETE statements. Kris Jurka
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
* Copyright (c) 2002-2003, PostgreSQL Global Development Group
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.25 2004/01/07 18:56:25 neilc Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.26 2004/04/22 02:58:20 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -106,7 +106,7 @@ PrepareQuery(PrepareStmt *stmt)
|
||||
* Implements the 'EXECUTE' utility statement.
|
||||
*/
|
||||
void
|
||||
ExecuteQuery(ExecuteStmt *stmt, DestReceiver *dest)
|
||||
ExecuteQuery(ExecuteStmt *stmt, DestReceiver *dest, char *completionTag)
|
||||
{
|
||||
PreparedStatement *entry;
|
||||
char *query_string;
|
||||
@ -188,7 +188,7 @@ ExecuteQuery(ExecuteStmt *stmt, DestReceiver *dest)
|
||||
*/
|
||||
PortalStart(portal, paramLI);
|
||||
|
||||
(void) PortalRun(portal, FETCH_ALL, dest, dest, NULL);
|
||||
(void) PortalRun(portal, FETCH_ALL, dest, dest, completionTag);
|
||||
|
||||
PortalDrop(portal, false);
|
||||
|
||||
|
Reference in New Issue
Block a user