From 2d7023c8fb8367850470438292ae83a6471848ae Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 12 Sep 1997 21:58:03 +0000 Subject: [PATCH] No \\connect with usernames AND passwords. --- src/bin/psql/psql.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c index f2ab13da5d..1933883df8 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.93 1997/09/08 21:50:14 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.94 1997/09/12 21:58:03 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1009,6 +1009,8 @@ do_connect(const char *new_dbname, { if (!new_dbname) fprintf(stderr, "\\connect must be followed by a database name\n"); + else if (new_user != NULL && settings.getPassword) + fprintf(stderr, "You can't specify a username when using passwords.\n"); else { PGconn *olddb = settings->db; -- 2.40.0