Skip to content

Commit ac733df

Browse files
committed
Fix some more uses of str[n]casecmp that should be pg_str[n]casecmp.
1 parent 32cebae commit ac733df

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

contrib/pgbench/pgbench.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.54 2006/09/13 00:39:19 ishii Exp $
2+
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.55 2006/09/16 13:31:40 tgl Exp $
33
*
44
* pgbench: a simple benchmark program for PostgreSQL
55
* written by Tatsuo Ishii
@@ -460,7 +460,7 @@ doCustom(CState * state, int n, int debug)
460460
if (commands[st->state]->type == SQL_COMMAND)
461461
{
462462
res = PQgetResult(st->con);
463-
if (strncasecmp(commands[st->state]->argv[0], "select", 6) != 0)
463+
if (pg_strncasecmp(commands[st->state]->argv[0], "select", 6) != 0)
464464
{
465465
if (check(state, res, n, PGRES_COMMAND_OK))
466466
return;
@@ -560,7 +560,7 @@ doCustom(CState * state, int n, int debug)
560560
fprintf(stderr, "\n");
561561
}
562562

563-
if (strcasecmp(argv[0], "setrandom") == 0)
563+
if (pg_strcasecmp(argv[0], "setrandom") == 0)
564564
{
565565
char *var;
566566
int min,
@@ -623,7 +623,7 @@ doCustom(CState * state, int n, int debug)
623623

624624
st->listen = 1;
625625
}
626-
else if (strcasecmp(argv[0], "set") == 0)
626+
else if (pg_strcasecmp(argv[0], "set") == 0)
627627
{
628628
char *var;
629629
int ope1,
@@ -925,7 +925,7 @@ process_commands(char *buf)
925925
tok = strtok(NULL, delim);
926926
}
927927

928-
if (strcasecmp(my_commands->argv[0], "setrandom") == 0)
928+
if (pg_strcasecmp(my_commands->argv[0], "setrandom") == 0)
929929
{
930930
if (my_commands->argc < 4)
931931
{
@@ -937,7 +937,7 @@ process_commands(char *buf)
937937
fprintf(stderr, "%s: extra argument \"%s\" ignored\n",
938938
my_commands->argv[0], my_commands->argv[j]);
939939
}
940-
else if (strcasecmp(my_commands->argv[0], "set") == 0)
940+
else if (pg_strcasecmp(my_commands->argv[0], "set") == 0)
941941
{
942942
if (my_commands->argc < 3)
943943
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy