Content-Length: 324361 | pFad | http://github.com/postgrespro/postgres_cluster/commit/f317a03734b4a8cc617a3f244d801ad88535c567

AE In pg_dump, strcasecmp -> pg_strcasecmp. · postgrespro/postgres_cluster@f317a03 · GitHub
Skip to content

Commit f317a03

Browse files
committed
In pg_dump, strcasecmp -> pg_strcasecmp.
1 parent e651bcf commit f317a03

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* by PostgreSQL
1313
*
1414
* IDENTIFICATION
15-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.462 2007/03/22 19:42:02 momjian Exp $
15+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.463 2007/03/22 20:18:49 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -476,28 +476,28 @@ main(int argc, char **argv)
476476
}
477477

478478
/* open the output file */
479-
if (strcasecmp(format, "a") == 0 || strcasecmp(format, "append") == 0)
479+
if (pg_strcasecmp(format, "a") == 0 || pg_strcasecmp(format, "append") == 0)
480480
{
481481
/* not documented */
482482
plainText = 1;
483483
g_fout = CreateArchive(filename, archNull, 0, archModeAppend);
484484
}
485-
else if (strcasecmp(format, "c") == 0 || strcasecmp(format, "custom") == 0)
485+
else if (pg_strcasecmp(format, "c") == 0 || pg_strcasecmp(format, "custom") == 0)
486486
g_fout = CreateArchive(filename, archCustom, compressLevel, archModeWrite);
487-
else if (strcasecmp(format, "f") == 0 || strcasecmp(format, "file") == 0)
487+
else if (pg_strcasecmp(format, "f") == 0 || pg_strcasecmp(format, "file") == 0)
488488
{
489489
/*
490490
* Dump files into the current directory; for demonstration only, not
491491
* documented.
492492
*/
493493
g_fout = CreateArchive(filename, archFiles, compressLevel, archModeWrite);
494494
}
495-
else if (strcasecmp(format, "p") == 0 || strcasecmp(format, "plain") == 0)
495+
else if (pg_strcasecmp(format, "p") == 0 || pg_strcasecmp(format, "plain") == 0)
496496
{
497497
plainText = 1;
498498
g_fout = CreateArchive(filename, archNull, 0, archModeWrite);
499499
}
500-
else if (strcasecmp(format, "t") == 0 || strcasecmp(format, "tar") == 0)
500+
else if (pg_strcasecmp(format, "t") == 0 || pg_strcasecmp(format, "tar") == 0)
501501
g_fout = CreateArchive(filename, archTar, compressLevel, archModeWrite);
502502
else
503503
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/f317a03734b4a8cc617a3f244d801ad88535c567

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy