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 <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