Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+4-4
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)