pgpool2.git / summary / log / commit / refs

commit    f1dc3873f5fdd49c764469db5effbd52cc4300fa
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Wed Jan 27 04:55:34 2016 +0000

    Fix buildfarm failure of 005.jdbc test.
    
    While processing Command Complete message, it is possible that query
    in progress state is false. In this case, pool_set_query_state() will
    fail and should not be called.


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 2a630c4b9..e72b9066e 100644 --- a/src/protocol/CommandComplete.c +++ b/src/protocol/CommandComplete.c @@ -145,7 +145,7 @@ POOL_STATUS CommandComplete(POOL_CONNECTION *frontend, POOL_CONNECTION_POOL *bac pfree(p1); - if (pool_is_doing_extended_query_message()) + if (pool_is_doing_extended_query_message() && pool_is_query_in_progress()) { pool_set_query_state(session_context->query_context, POOL_EXECUTE_COMPLETE); } [parent: ef21742c2dcf]