mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Avoid unnecessary strcasecmp -- replace by strcmp. Fixes reported bug
that made setting serializable isolation level impossible in Turkish locale.
This commit is contained in:
parent
f0212ced68
commit
9e774ca45e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user