diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-09-04 05:03:05 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-09-04 05:03:05 +0000 |
commit | e9d0fa3762fd3731117c5ba0fee719771aacfd98 (patch) | |
tree | 8772599de04fa3bb0912d04e20dacb6e4017e78a /src/interfaces/libpq/fe-exec.c | |
parent | b806b3d3f8341d735a5d7c89ae58c42095f81620 (diff) | |
download | postgresql-e9d0fa3762fd3731117c5ba0fee719771aacfd98.tar.gz postgresql-e9d0fa3762fd3731117c5ba0fee719771aacfd98.zip |
libpgtcl cleanups for Tom Lane.
Diffstat (limited to 'src/interfaces/libpq/fe-exec.c')
-rw-r--r-- | src/interfaces/libpq/fe-exec.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c index fe5e7e037de..be563e24e60 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.66 1998/09/03 02:10:47 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.67 1998/09/04 05:03:02 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1489,12 +1489,15 @@ PQoidStatus(PGresult *res) return ""; /* - * The cmdStatus string looks like INSERT oid count\0 In order to be - * able to return an ordinary C string without damaging the result for - * PQcmdStatus or PQcmdTuples, we copy the oid part of the string to - * just after the null, so that cmdStatus looks like INSERT oid - * count\0oid\0 ^ our return value points here Pretty klugy eh? This - * routine should've just returned an Oid value. + * The cmdStatus string looks like + * INSERT oid count\0 + * In order to be able to return an ordinary C string without + * damaging the result for PQcmdStatus or PQcmdTuples, we copy + * the oid part of the string to just after the null, so that + * cmdStatus looks like + * INSERT oid count\0oid\0 + * ^ our return value points here + * Pretty klugy eh? This routine should've just returned an Oid value. */ slen = strlen(res->cmdStatus); |