Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2d7023c

Browse files
committed
No \\connect with usernames AND passwords.
1 parentcf5a872 commit2d7023c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/bin/psql/psql.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.93 1997/09/08 21:50:14 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.94 1997/09/12 21:58:03 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1009,6 +1009,8 @@ do_connect(const char *new_dbname,
10091009
{
10101010
if (!new_dbname)
10111011
fprintf(stderr,"\\connect must be followed by a database name\n");
1012+
elseif (new_user!=NULL&&settings.getPassword)
1013+
fprintf(stderr,"You can't specify a username when using passwords.\n");
10121014
else
10131015
{
10141016
PGconn*olddb=settings->db;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp