diff options
| author | Bruce Momjian | 1997-12-01 21:01:24 +0000 |
|---|---|---|
| committer | Bruce Momjian | 1997-12-01 21:01:24 +0000 |
| commit | dfc1a6a848d65f64e76a4bfce66269bdc33a6227 (patch) | |
| tree | aed88be9d625c39ce2c02d43de315e6d8860b07c /src/interfaces | |
| parent | df823bc42d41fb42ace96352a98246c663b45bce (diff) | |
Document pg_dump -z, clean up option list. Fix problem with libpq handling of field names uppercase code.
Diffstat (limited to 'src/interfaces')
| -rw-r--r-- | src/interfaces/libpq/fe-connect.c | 4 | ||||
| -rw-r--r-- | src/interfaces/libpq/fe-exec.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 8b6648a5eb3..b9562fd6ef8 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.47 1997/11/17 16:42:39 thomas Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.48 1997/12/01 21:01:12 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -430,7 +430,7 @@ PQsetdb(const char *pghost, const char *pgport, const char *pgoptions, const cha *(conn->dbName + strlen(conn->dbName) - 1) = '\0'; } else - for (i = 0; conn->dbName[i]; i++) + for (i = strlen(conn->dbName[i]); i >= 0; i--) if (isupper(conn->dbName[i])) conn->dbName[i] = tolower(conn->dbName[i]); } diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c index 2f1b55fbd12..86fca431cc6 100644 --- a/src/interfaces/libpq/fe-exec.c +++ b/src/interfaces/libpq/fe-exec.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.40 1997/11/10 05:10:50 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.41 1997/12/01 21:01:18 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1697,7 +1697,7 @@ PQfnumber(PGresult *res, const char *field_name) *(field_case + strlen(field_case) - 1) = '\0'; } else - for (i = 0; field_case; i++) + for (i = strlen(field_case[i]); i >= 0; i--) if (isupper(field_case[i])) field_case[i] = tolower(field_case[i]); |
