Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9e774ca

Browse files
committed
Avoid unnecessary strcasecmp -- replace by strcmp. Fixes reported bug
that made setting serializable isolation level impossible in Turkishlocale.
1 parentf0212ce commit9e774ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/commands/variable.c

Lines changed: 4 additions & 4 deletions
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-
elseif (strcasecmp(value,"READ COMMITTED")==0)
467+
elseif (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)

[8]ページ先頭

©2009-2025 Movatter.jp