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-connect.c,v 1.52 1997/12/04 20:32:35 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.53 1997/12/05 01:13:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -444,7 +444,7 @@ PQsetdbLogin(const char *pghost, const char *pgport, const char *pgoptions, cons
*(conn->dbName + strlen(conn->dbName) - 1) = '\0';
}
else
for (i = strlen(conn->dbName); i >= 0; i--)
for (i = 0; conn->dbName[i]; i++)
if (isupper(conn->dbName[i]))
conn->dbName[i] = tolower(conn->dbName[i]);
}