pgpool2.git / summary / log / commit / refs

commit    8e123b62277223ce3ccfa9d05c5aa5ecb7b87a3c
Author:   Bo Peng <pengbo@sraoss.co.jp>
Date:     Thu Sep 13 08:30:58 2018 +0000

    Fix kind mismatch error when DEALLOCATE statement is issued.
    
    PREPARE should be add to pool_add_sent_message, so that EXECUTE and DEALLOCATE
    can be sent to the same node as PREPARE.
    
    See [pgpool-general: 6226] for more details.


src/protocol/CommandComplete.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/CommandComplete.c b/src/protocol/CommandComplete.c index 820e0f3dd..81bd5287b 100644 --- a/src/protocol/CommandComplete.c +++ b/src/protocol/CommandComplete.c @@ -65,7 +65,7 @@ CommandComplete(POOL_CONNECTION * frontend, POOL_CONNECTION_POOL * backend, bool /* * Handle misc process which is neccessary when query context exists. */ - if (session_context->query_context != NULL && !SL_MODE) + if (session_context->query_context != NULL && (!SL_MODE || (SL_MODE && !pool_is_doing_extended_query_message()))) handle_query_context(backend); /* [parent: c2fc260fd2f8]