|
12 | 12 | * by PostgreSQL |
13 | 13 | * |
14 | 14 | * 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 $ |
16 | 16 | * |
17 | 17 | *------------------------------------------------------------------------- |
18 | 18 | */ |
@@ -476,28 +476,28 @@ main(int argc, char **argv) |
476 | 476 | } |
477 | 477 |
|
478 | 478 | /* 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) |
480 | 480 | { |
481 | 481 | /* not documented */ |
482 | 482 | plainText = 1; |
483 | 483 | g_fout = CreateArchive(filename, archNull, 0, archModeAppend); |
484 | 484 | } |
485 | | - else if (strcasecmp(format, "c") == 0 || strcasecmp(format, "custom") == 0) |
| 485 | + else if (pg_strcasecmp(format, "c") == 0 || pg_strcasecmp(format, "custom") == 0) |
486 | 486 | 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) |
488 | 488 | { |
489 | 489 | /* |
490 | 490 | * Dump files into the current directory; for demonstration only, not |
491 | 491 | * documented. |
492 | 492 | */ |
493 | 493 | g_fout = CreateArchive(filename, archFiles, compressLevel, archModeWrite); |
494 | 494 | } |
495 | | - else if (strcasecmp(format, "p") == 0 || strcasecmp(format, "plain") == 0) |
| 495 | + else if (pg_strcasecmp(format, "p") == 0 || pg_strcasecmp(format, "plain") == 0) |
496 | 496 | { |
497 | 497 | plainText = 1; |
498 | 498 | g_fout = CreateArchive(filename, archNull, 0, archModeWrite); |
499 | 499 | } |
500 | | - else if (strcasecmp(format, "t") == 0 || strcasecmp(format, "tar") == 0) |
| 500 | + else if (pg_strcasecmp(format, "t") == 0 || pg_strcasecmp(format, "tar") == 0) |
501 | 501 | g_fout = CreateArchive(filename, archTar, compressLevel, archModeWrite); |
502 | 502 | else |
503 | 503 | { |
|
0 commit comments