aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-exec.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1997-12-01 21:01:24 +0000
committerBruce Momjian <bruce@momjian.us>1997-12-01 21:01:24 +0000
commitdfc1a6a848d65f64e76a4bfce66269bdc33a6227 (patch)
treeaed88be9d625c39ce2c02d43de315e6d8860b07c /src/interfaces/libpq/fe-exec.c
parentdf823bc42d41fb42ace96352a98246c663b45bce (diff)
downloadpostgresql-dfc1a6a848d65f64e76a4bfce66269bdc33a6227.tar.gz
postgresql-dfc1a6a848d65f64e76a4bfce66269bdc33a6227.zip
Document pg_dump -z, clean up option list. Fix problem with libpq handling of field names uppercase code.
Diffstat (limited to 'src/interfaces/libpq/fe-exec.c')
-rw-r--r--src/interfaces/libpq/fe-exec.c4
1 files changed, 2 insertions, 2 deletions
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]);