|
11 | 11 | importorg.postgresql.core.*;
|
12 | 12 |
|
13 | 13 | /**
|
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 $ |
15 | 15 | *
|
16 | 16 | * This abstract class is used by org.postgresql.Driver to open either the JDBC1 or
|
17 | 17 | * JDBC2 versions of the Connection class.
|
@@ -109,13 +109,16 @@ protected void openConnection(String host, int port, Properties info, String dat
|
109 | 109 | // of getConnection(), and is a common question on the email lists
|
110 | 110 | if (info.getProperty("user") ==null)
|
111 | 111 | 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 =""; |
114 | 118 |
|
115 | 119 | this_driver =d;
|
116 | 120 | this_url =url;
|
117 | 121 | PG_DATABASE =database;
|
118 |
| -PG_PASSWORD =info.getProperty("password"); |
119 | 122 | PG_USER =info.getProperty("user");
|
120 | 123 | PG_PORT =port;
|
121 | 124 | PG_HOST =host;
|
|