patch cleanups.

This commit is contained in:
Bruce Momjian 1998-09-03 05:08:28 +00:00
parent fcecc5ca1e
commit 9d8d647146
2 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.159 1998/09/03 02:10:38 momjian Exp $ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.160 1998/09/03 05:08:25 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -149,7 +149,7 @@ struct winsize
static void usage(char *progname); static void usage(char *progname);
static void slashUsage(); static void slashUsage();
static bool handleCopyOut(PGconn *conn, FILE *copystream); static bool handleCopyOut(PGconn *conn, FILE *copystream);
static bool handleCopyIn(PGresult *res, const bool mustprompt, static bool handleCopyIn(PGconn *conn, const bool mustprompt,
FILE *copystream); FILE *copystream);
static int tableList(PsqlSettings *pset, bool deep_tablelist, static int tableList(PsqlSettings *pset, bool deep_tablelist,
char info_type, bool system_tables); char info_type, bool system_tables);

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.32 1998/09/03 02:10:42 momjian Exp $ * $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.33 1998/09/03 05:08:28 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -358,7 +358,7 @@ Pg_connect(ClientData cData, Tcl_Interp * interp, int argc, char *argv[])
conn = PQsetdb(pghost, pgport, pgoptions, pgtty, dbName); conn = PQsetdb(pghost, pgport, pgoptions, pgtty, dbName);
} }
if (PQstatus(conn) == CONNECTION_OK) { if (PQstatus(conn) == CONNECTION_OK)
{ {
PgSetConnectionId(interp, conn); PgSetConnectionId(interp, conn);
return TCL_OK; return TCL_OK;
@ -1413,7 +1413,7 @@ Pg_listen(ClientData cData, Tcl_Interp * interp, int argc, char *argv[])
ckfree(cmd); ckfree(cmd);
/* Transfer any notify events from libpq to Tcl event queue. */ /* Transfer any notify events from libpq to Tcl event queue. */
PgNotifyTransferEvents(connid); PgNotifyTransferEvents(connid);
if (PQresultStatus(result) != PGRES_COMMAND_OK) { if (PQresultStatus(result) != PGRES_COMMAND_OK)
{ {
/* Error occurred during the execution of command */ /* Error occurred during the execution of command */
PQclear(result); PQclear(result);