Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf317a03

Browse files
committed
In pg_dump, strcasecmp -> pg_strcasecmp.
1 parente651bcf commitf317a03

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/2219:42:02 momjian Exp $
15+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.463 2007/03/2220: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-
elseif (strcasecmp(format,"c")==0||strcasecmp(format,"custom")==0)
485+
elseif (pg_strcasecmp(format,"c")==0||pg_strcasecmp(format,"custom")==0)
486486
g_fout=CreateArchive(filename,archCustom,compressLevel,archModeWrite);
487-
elseif (strcasecmp(format,"f")==0||strcasecmp(format,"file")==0)
487+
elseif (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-
elseif (strcasecmp(format,"p")==0||strcasecmp(format,"plain")==0)
495+
elseif (pg_strcasecmp(format,"p")==0||pg_strcasecmp(format,"plain")==0)
496496
{
497497
plainText=1;
498498
g_fout=CreateArchive(filename,archNull,0,archModeWrite);
499499
}
500-
elseif (strcasecmp(format,"t")==0||strcasecmp(format,"tar")==0)
500+
elseif (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)

[8]ページ先頭

©2009-2025 Movatter.jp