Commit e9d0fa37 authored by Bruce Momjian's avatar Bruce Momjian

libpgtcl cleanups for Tom Lane.

parent b806b3d3
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.33 1998/09/03 05:08:28 momjian Exp $ * $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.34 1998/09/04 05:02:58 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -617,7 +617,6 @@ Pg_result(ClientData cData, Tcl_Interp * interp, int argc, char *argv[]) ...@@ -617,7 +617,6 @@ Pg_result(ClientData cData, Tcl_Interp * interp, int argc, char *argv[])
{ {
sprintf(workspace, "%s,%.200s%s", field0, PQfname(result,i), sprintf(workspace, "%s,%.200s%s", field0, PQfname(result,i),
appendstr); appendstr);
sprintf(workspace, "%s,%.200s", field0, PQfname(result,i));
if (Tcl_SetVar2(interp, arrVar, workspace, if (Tcl_SetVar2(interp, arrVar, workspace,
PQgetvalue(result, tupno, i), PQgetvalue(result, tupno, i),
TCL_LEAVE_ERR_MSG) == NULL) TCL_LEAVE_ERR_MSG) == NULL)
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -1489,12 +1489,15 @@ PQoidStatus(PGresult *res)
return ""; return "";
/* /*
* The cmdStatus string looks like INSERT oid count\0 In order to be * The cmdStatus string looks like
* able to return an ordinary C string without damaging the result for * INSERT oid count\0
* PQcmdStatus or PQcmdTuples, we copy the oid part of the string to * In order to be able to return an ordinary C string without
* just after the null, so that cmdStatus looks like INSERT oid * damaging the result for PQcmdStatus or PQcmdTuples, we copy
* count\0oid\0 ^ our return value points here Pretty klugy eh? This * the oid part of the string to just after the null, so that
* routine should've just returned an Oid value. * 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); slen = strlen(res->cmdStatus);
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: libpq-fe.h,v 1.41 1998/09/03 02:10:51 momjian Exp $ * $Id: libpq-fe.h,v 1.42 1998/09/04 05:03:05 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -182,7 +182,6 @@ typedef void (*PQnoticeProcessor) (void * arg, const char * message); ...@@ -182,7 +182,6 @@ typedef void (*PQnoticeProcessor) (void * arg, const char * message);
extern ConnStatusType PQstatus(PGconn *conn); extern ConnStatusType PQstatus(PGconn *conn);
extern char *PQerrorMessage(PGconn *conn); extern char *PQerrorMessage(PGconn *conn);
extern int PQsocket(PGconn *conn); extern int PQsocket(PGconn *conn);
extern int PQsocket(PGconn *conn);
extern int PQbackendPID(PGconn *conn); extern int PQbackendPID(PGconn *conn);
/* Enable/disable tracing */ /* Enable/disable tracing */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment