summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/org/postgresql/Connection.java
diff options
context:
space:
mode:
authorBarry Lind <barry@xythos.com>2001-11-01 01:10:13 +0000
committerBarry Lind <barry@xythos.com>2001-11-01 01:10:13 +0000
commit8304a395f91335d243dd01af82314fc4fcafde92 (patch)
tree58f247e18d3fb0d8ce673cb72f44c8873ebd8cfd /src/interfaces/jdbc/org/postgresql/Connection.java
parent01da8e918d8495f720143be336c49a711716b8b8 (diff)
downloadpostgresql-8304a395f91335d243dd01af82314fc4fcafde92.tar.gz
minor improvements on Dave's last checkin
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/Connection.java')
-rw-r--r--src/interfaces/jdbc/org/postgresql/Connection.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/Connection.java b/src/interfaces/jdbc/org/postgresql/Connection.java
index d00e580c4b..0982428e9e 100644
--- a/src/interfaces/jdbc/org/postgresql/Connection.java
+++ b/src/interfaces/jdbc/org/postgresql/Connection.java
@@ -11,7 +11,7 @@ import org.postgresql.util.*;
import org.postgresql.core.*;
/**
- * $Id: Connection.java,v 1.33 2001/10/31 20:26:01 davec Exp $
+ * $Id: Connection.java,v 1.34 2001/11/01 01:08:36 barry Exp $
*
* This abstract class is used by org.postgresql.Driver to open either the JDBC1 or
* JDBC2 versions of the Connection class.
@@ -110,16 +110,11 @@ public abstract class Connection
if (info.getProperty("user") == null)
throw new PSQLException("postgresql.con.user");
-
- PG_PASSWORD = info.getProperty("password");
- // allow a null password D.C.
- if ( PG_PASSWORD== null)
- PG_PASSWORD = "";
-
this_driver = d;
this_url = url;
PG_DATABASE = database;
PG_USER = info.getProperty("user");
+ PG_PASSWORD = info.getProperty("password","");
PG_PORT = port;
PG_HOST = host;
PG_STATUS = CONNECTION_BAD;