Skip to content
Snippets Groups Projects
Commit 9e774ca4 authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

Avoid unnecessary strcasecmp -- replace by strcmp. Fixes reported bug

that made setting serializable isolation level impossible in Turkish
locale.
parent f0212ced
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.52 2001/09/06 04:57:28 ishii Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.53 2001/09/19 15:19:12 petere Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -462,12 +462,12 @@ parse_XactIsoLevel(char *value)
}
if (strcasecmp(value, "SERIALIZABLE") == 0)
if (strcmp(value, "serializable") == 0)
XactIsoLevel = XACT_SERIALIZABLE;
else if (strcasecmp(value, "READ COMMITTED") == 0)
else if (strcmp(value, "read committed") == 0)
XactIsoLevel = XACT_READ_COMMITTED;
else
elog(ERROR, "Bad TRANSACTION ISOLATION LEVEL (%s)", value);
elog(ERROR, "invalid transaction isolation level: %s", value);
return TRUE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment