Commit 9e774ca4 authored by Peter Eisentraut's avatar Peter Eisentraut

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

that made setting serializable isolation level impossible in Turkish
locale.
parent f0212ced
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment