Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8304a39

Browse files
author
Barry Lind
committed
minor improvements on Dave's last checkin
1 parent 01da8e9 commit 8304a39

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

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

+2-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import org.postgresql.core.*;
1212

1313
/**
14-
* $Id: Connection.java,v 1.33 2001/10/31 20:26:01 davec Exp $
14+
* $Id: Connection.java,v 1.34 2001/11/01 01:08:36 barry 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.
@@ -110,16 +110,11 @@ protected void openConnection(String host, int port, Properties info, String dat
110110
if (info.getProperty("user") == null)
111111
throw new PSQLException("postgresql.con.user");
112112

113-
114-
PG_PASSWORD = info.getProperty("password");
115-
// allow a null password D.C.
116-
if ( PG_PASSWORD== null)
117-
PG_PASSWORD = "";
118-
119113
this_driver = d;
120114
this_url = url;
121115
PG_DATABASE = database;
122116
PG_USER = info.getProperty("user");
117+
PG_PASSWORD = info.getProperty("password","");
123118
PG_PORT = port;
124119
PG_HOST = host;
125120
PG_STATUS = CONNECTION_BAD;

src/interfaces/jdbc/org/postgresql/Driver.java.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class Driver implements java.sql.Driver
3333
protected static final int ERROR = 3;
3434
protected static final int FATAL = 4;
3535

36-
private static int logLevel= DEBUG;
36+
private static int logLevel= FATAL;
3737

3838
static
3939
{

0 commit comments

Comments
 (0)