1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Fix tolower loops to go in proper direction for cache.

This commit is contained in:
Bruce Momjian
1997-12-05 01:13:24 +00:00
parent 84fc5c4aed
commit 5a5cb30096
6 changed files with 12 additions and 12 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.43 1997/12/04 23:28:20 thomas Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.44 1997/12/05 01:13:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -1697,7 +1697,7 @@ PQfnumber(PGresult *res, const char *field_name)
*(field_case + strlen(field_case) - 1) = '\0';
}
else
for (i = 0; i < strlen(field_case); i++)
for (i = 0; field_case[i]; i++)
if (isupper(field_case[i]))
field_case[i] = tolower(field_case[i]);