8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf5a872 commit 2d7023cCopy full SHA for 2d7023c
src/bin/psql/psql.c
@@ -7,7 +7,7 @@
7
*
8
9
* IDENTIFICATION
10
- * $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 $
11
12
*-------------------------------------------------------------------------
13
*/
@@ -1009,6 +1009,8 @@ do_connect(const char *new_dbname,
1009
{
1010
if (!new_dbname)
1011
fprintf(stderr, "\\connect must be followed by a database name\n");
1012
+ else if (new_user != NULL && settings.getPassword)
1013
+ fprintf(stderr, "You can't specify a username when using passwords.\n");
1014
else
1015
1016
PGconn *olddb = settings->db;
0 commit comments