Skip to content

Commit d55f1b8

Browse files
committed
Add C comment about new \c parameter requirement for crashed connections.
1 parent 41fa3df commit d55f1b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bin/psql/command.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,11 @@ do_connect(char *dbname, char *user, char *host, char *port)
15141514

15151515
if (!o_conn && (!dbname || !user || !host || !port))
15161516
{
1517+
/*
1518+
* We don't know the supplied connection parameters and don't want
1519+
* to connect to the wrong database by using defaults, so require
1520+
* all parameters to be specified.
1521+
*/
15171522
fputs(_("All connection parameters must be supplied because no database connection exists\n"), stderr);
15181523
return false;
15191524
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy