diff options
Diffstat (limited to 'src/interfaces/libpq/fe-exec.c')
-rw-r--r-- | src/interfaces/libpq/fe-exec.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c index 53fedf11bd..c5c9aa0660 100644 --- a/src/interfaces/libpq/fe-exec.c +++ b/src/interfaces/libpq/fe-exec.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.96 2000/06/14 18:17:58 petere Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.97 2000/12/03 20:45:39 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1955,9 +1955,8 @@ PQfnumber(const PGresult *res, const char *field_name) } else for (i = 0; field_case[i]; i++) - if (isascii((int) field_case[i]) && - isupper((int) field_case[i])) - field_case[i] = tolower(field_case[i]); + if (isupper((unsigned char) field_case[i])) + field_case[i] = tolower((unsigned char) field_case[i]); for (i = 0; i < res->numAttributes; i++) { |