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

commit c86a683b7e23dc20b2365f106d5e23fa585fba39
Author: ztao1987 <zhenglin.ta...@gmail.com>
AuthorDate: Thu Dec 9 14:17:12 2021 +0800

    HAWQ-1818. fix case sensitive issue in pg_dump
---
 src/bin/pg_dump/pg_dump.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index d885d72..d771590 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -7851,7 +7851,7 @@ dumpTableSchema(Archive *fout, TableInfo *tbinfo)
 
                /* web table */
                if ((command && strlen(command) > 0) ||
-                       (strncmp(locations + 1, "http", strlen("http")) == 0))
+                       (strncasecmp(locations + 1, "http", strlen("http")) == 
0))
                {
                        isexternal = true;
                        isweb = true;
@@ -7865,7 +7865,7 @@ dumpTableSchema(Archive *fout, TableInfo *tbinfo)
                                        fmtId(tbinfo->dobj.name));
                }
                /* gpfdist table */
-               else if (strncmp(locations + 1, "gpfdist", strlen("gpfdist")) 
== 0)
+               else if (strncasecmp(locations + 1, "gpfdist", 
strlen("gpfdist")) == 0)
                {
                        isexternal = true;
                        if (writable && writable[0] == 't')

Reply via email to