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

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


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

commit 39f96c033d8dfddb15c87d7a4cfdaf206fdb8557
Author: ztao1987 <zhenglin.ta...@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;

Reply via email to