mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03: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))
|
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);
|
fputs(_("All connection parameters must be supplied because no database connection exists\n"), stderr);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user