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

Commitaf000b7

Browse files
author
Dave Cramer
committed
allow null passwords
1 parent2991608 commitaf000b7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

‎src/interfaces/jdbc/org/postgresql/Connection.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
importorg.postgresql.core.*;
1212

1313
/**
14-
* $Id: Connection.java,v 1.32 2001/10/25 05:59:59 momjian Exp $
14+
* $Id: Connection.java,v 1.33 2001/10/31 20:26:01 davec Exp $
1515
*
1616
* This abstract class is used by org.postgresql.Driver to open either the JDBC1 or
1717
* JDBC2 versions of the Connection class.
@@ -109,13 +109,16 @@ protected void openConnection(String host, int port, Properties info, String dat
109109
// of getConnection(), and is a common question on the email lists
110110
if (info.getProperty("user") ==null)
111111
thrownewPSQLException("postgresql.con.user");
112-
if (info.getProperty("password") ==null)
113-
thrownewPSQLException("postgresql.con.pass");
112+
113+
114+
PG_PASSWORD =info.getProperty("password");
115+
// allow a null password D.C.
116+
if (PG_PASSWORD==null)
117+
PG_PASSWORD ="";
114118

115119
this_driver =d;
116120
this_url =url;
117121
PG_DATABASE =database;
118-
PG_PASSWORD =info.getProperty("password");
119122
PG_USER =info.getProperty("user");
120123
PG_PORT =port;
121124
PG_HOST =host;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp