*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.165 2001/07/06 17:58:53 petere Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.166 2001/07/06 19:04:23 petere Exp $
*
*-------------------------------------------------------------------------
*/
if (areq == AUTH_REQ_OK)
{
/* We are done with authentication exchange */
- conn->startup_complete = TRUE;
conn->status = CONNECTION_AUTH_OK;
/*
freePGconn(conn);
conn = NULL;
}
- conn->startup_complete = FALSE;
return conn;
}
{
/* Note that the protocol doesn't allow us to send Terminate
messages during the startup phase. */
- if (conn->sock >= 0 && conn->startup_complete)
+ if (conn->sock >= 0 && conn->status == CONNECTION_OK)
{
/*
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: libpq-int.h,v 1.34 2001/07/06 17:58:53 petere Exp $
+ * $Id: libpq-int.h,v 1.35 2001/07/06 19:04:23 petere Exp $
*
*-------------------------------------------------------------------------
*/
PQExpBufferData workBuffer; /* expansible string */
int client_encoding;/* encoding id */
- int startup_complete;
};
/* String descriptions of the ExecStatusTypes.