summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-12-22 03:26:52 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-12-22 03:26:52 +0000
commite768c418b5bc26f804c64ebf10876218fd49b625 (patch)
treeaacca8343b3f6145899d4349d01efc451721e3a5 /src
parent502a6531b3d341c4f847c7860da29c6cc307d54e (diff)
downloadpostgresql-e768c418b5bc26f804c64ebf10876218fd49b625.tar.gz
I found that when changing databases from within psql the prompt went sort of
strange. bash$ psql disks Welcome to the POSTGRESQL interactive sql monitor: Please read the file COPYRIGHT for copyright terms of POSTGRESQL type \? for help on slash commands type \q to quit type \g or terminate with semicolon to execute query You are currently connected to the database: disks disks=> \c postgres closing connection to database: disks connecting to new database: postgres postgres== \c disks closing connection to database: postgres connecting to new database: disks disks== \q bash$ Note the => changes to == after a connect and stays that way on subsequent database changes. Submitted by: Keith Parks <emkxp01@mtcc.demon.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/psql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c
index c5709e3a03..5b80744ed9 100644
--- a/src/bin/psql/psql.c
+++ b/src/bin/psql/psql.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.37.2.2 1996/12/14 08:19:40 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.37.2.3 1996/12/22 03:26:52 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -791,7 +791,7 @@ do_connect(const char *new_dbname, PsqlSettings * settings)
PQfinish(olddb);
free(settings->prompt);
settings->prompt = malloc(strlen(PQdb(settings->db)) + 10);
- sprintf(settings->prompt, "%s%s ", PQdb(settings->db), PROMPT);
+ sprintf(settings->prompt, "%s%s", PQdb(settings->db), PROMPT);
}
}
}