Skip to content
Permalink
Browse files
HAWQ-1818. fix case sensitive issue in pg_dump
  • Loading branch information
ztao1987 committed Dec 9, 2021
1 parent c3b1c41 commit c86a683b7e23dc20b2365f106d5e23fa585fba39
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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')

0 comments on commit c86a683

Please sign in to comment.