提交 d7e0e61d 编写于 作者: T Thomas G. Lockhart

Run through toupper() conversion in the forward direction.

 Most processors should optimize this a bit better wrt cache prefetch.
上级 6ad698c9
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.42 1997/12/01 22:02:49 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.43 1997/12/04 23:28:20 thomas Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -1697,7 +1697,7 @@ PQfnumber(PGresult *res, const char *field_name)
*(field_case + strlen(field_case) - 1) = '\0';
}
else
for (i = strlen(field_case); i >= 0; i--)
for (i = 0; i < strlen(field_case); i++)
if (isupper(field_case[i]))
field_case[i] = tolower(field_case[i]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册