mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Add C comment about new \c parameter requirement for crashed connections.
This commit is contained in:
parent
41fa3dfb0a
commit
d55f1b852d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user