pgpool2.git / summary / log / commit / refs

commit    dd719ef08655596e7ba120cda1dabc2b162ae315
Author:   Takuma Hoshiai <hoshiai@sraoss.co.jp>
Date:     Tue Oct 08 07:00:23 2019 +0000

    Fix extended query communication in do_query()
    
    do_query() didn't send Describe message to PostgreSQL.
    It didn't use strcasecmp() but strcasecmp() when check if query is SELECT.


src/protocol/pool_process_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/pool_process_query.c b/src/protocol/pool_process_query.c index 6bbb8671a..52c613a90 100644 --- a/src/protocol/pool_process_query.c +++ b/src/protocol/pool_process_query.c @@ -1968,7 +1968,7 @@ do_query(POOL_CONNECTION * backend, char *query, POOL_SELECT_RESULT * *result, i /* * Send descrive message if the query is SELECT. */ - if (!strcasecmp(query, "SELECT")) + if (!strncasecmp(query, "SELECT", strlen("SELECT"))) { /* * Send descrive message [parent: 934d78132cfd]