mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Message style improvements
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.173 2006/10/04 00:30:05 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.174 2006/10/06 17:14:00 petere Exp $
|
||||
*/
|
||||
#include "postgres_fe.h"
|
||||
#include "command.h"
|
||||
@ -1077,7 +1077,7 @@ do_connect(char *dbname, char *user, char *host, char *port)
|
||||
|
||||
/* pset.db is left unmodified */
|
||||
if (o_conn)
|
||||
fputs(_("Previous connection kept.\n"), stderr);
|
||||
fputs(_("Previous connection kept\n"), stderr);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1106,15 +1106,15 @@ do_connect(char *dbname, char *user, char *host, char *port)
|
||||
{
|
||||
printf(_("You are now connected to database \"%s\""), PQdb(pset.db));
|
||||
|
||||
if (param_is_newly_set(PQuser(o_conn), PQuser(pset.db)))
|
||||
printf(_(" as user \"%s\""), PQuser(pset.db));
|
||||
|
||||
if (param_is_newly_set(PQhost(o_conn), PQhost(pset.db)))
|
||||
printf(_(" on host \"%s\""), PQhost(pset.db));
|
||||
|
||||
if (param_is_newly_set(PQport(o_conn), PQport(pset.db)))
|
||||
printf(_(" at port \"%s\""), PQport(pset.db));
|
||||
|
||||
if (param_is_newly_set(PQuser(o_conn), PQuser(pset.db)))
|
||||
printf(_(" as user \"%s\""), PQuser(pset.db));
|
||||
|
||||
printf(".\n");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user