Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
HAWQ-1818. fix case sensitive issue in pg_dump
Browse files Browse the repository at this point in the history
  • Loading branch information
ztao1987 committed Dec 9, 2021
1 parent c3b1c41 commit c86a683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/pg_dump/pg_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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')
Expand Down

0 comments on commit c86a683

Please sign in to comment.