You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by zt...@apache.org on 2021/11/03 06:11:10 UTC

[hawq] branch ztao updated: HAWQ-1812. fix bug of proxy dispatcher decode bytes as string

This is an automated email from the ASF dual-hosted git repository.

ztao1987 pushed a commit to branch ztao
in repository https://gitbox.apache.org/repos/asf/hawq.git


The following commit(s) were added to refs/heads/ztao by this push:
     new b21c7d3  HAWQ-1812. fix bug of proxy dispatcher decode bytes as string
b21c7d3 is described below

commit b21c7d39c1af0256e372b33ccd073ab3fae87104
Author: ztao1987 <zh...@gmail.com>
AuthorDate: Wed Nov 3 14:10:35 2021 +0800

    HAWQ-1812. fix bug of proxy dispatcher decode bytes as string
---
 src/backend/tcop/postgres.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 10dc89c..085ab08 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -5521,7 +5521,7 @@ PostgresMain(int argc, char *argv[], const char *username)
 
 			case 'J':
 			{
-			  proxyDispatchRun(dispatchData, pq_getmsgstring(&input_message));
+			  proxyDispatchRun(dispatchData, pq_getmsgbytes(&input_message, 0));
 			  proxyDispatchWait(dispatchData);
 			  proxyDispatchCleanUp(&dispatchData);
 			  send_ready_for_query = true;