From d55f1b852d4fe87f2a4d16ea3f0ce11a7019a352 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 15 Aug 2012 19:17:26 -0400 Subject: [PATCH] Add C comment about new \c parameter requirement for crashed connections. --- src/bin/psql/command.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 2cd3ab4cf7..205bb507fb 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -1514,6 +1514,11 @@ do_connect(char *dbname, char *user, char *host, char *port) if (!o_conn && (!dbname || !user || !host || !port)) { + /* + * We don't know the supplied connection parameters and don't want + * to connect to the wrong database by using defaults, so require + * all parameters to be specified. + */ fputs(_("All connection parameters must be supplied because no database connection exists\n"), stderr); return false; }