From 9e774ca45e002ee887ee58dd0dfbc285c3ffe24c Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter_e@gmx.net>
Date: Wed, 19 Sep 2001 15:19:12 +0000
Subject: [PATCH] Avoid unnecessary strcasecmp -- replace by strcmp.  Fixes
 reported bug that made setting serializable isolation level impossible in
 Turkish locale.

---
 src/backend/commands/variable.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/backend/commands/variable.c b/src/backend/commands/variable.c
index cc7ab385aa8..029ea86a2bd 100644
--- a/src/backend/commands/variable.c
+++ b/src/backend/commands/variable.c
@@ -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;
 }
-- 
GitLab