Skip to content

Commit 9e774ca

Browse files
committed
Avoid unnecessary strcasecmp -- replace by strcmp. Fixes reported bug
that made setting serializable isolation level impossible in Turkish locale.
1 parent f0212ce commit 9e774ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/commands/variable.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.52 2001/09/06 04:57:28 ishii Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.53 2001/09/19 15:19:12 petere Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -462,12 +462,12 @@ parse_XactIsoLevel(char *value)
462462
}
463463

464464

465-
if (strcasecmp(value, "SERIALIZABLE") == 0)
465+
if (strcmp(value, "serializable") == 0)
466466
XactIsoLevel = XACT_SERIALIZABLE;
467-
else if (strcasecmp(value, "READ COMMITTED") == 0)
467+
else if (strcmp(value, "read committed") == 0)
468468
XactIsoLevel = XACT_READ_COMMITTED;
469469
else
470-
elog(ERROR, "Bad TRANSACTION ISOLATION LEVEL (%s)", value);
470+
elog(ERROR, "invalid transaction isolation level: %s", value);
471471

472472
return TRUE;
473473
}

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