mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-06-16 00:16:04 +00:00
DriverManager.java (getConnection): Don't set user/password properties if null.
2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com> * java/sql/DriverManager.java (getConnection): Don't set user/password properties if null. From-SVN: r38516
This commit is contained in:
committed by
Bryce McKinlay
parent
347d73aac2
commit
4c58589f1a
@@ -341,8 +341,10 @@ getConnection(String url, String user, String password) throws SQLException
|
||||
{
|
||||
Properties p = new Properties();
|
||||
|
||||
p.setProperty("user", user);
|
||||
p.setProperty("password", password);
|
||||
if (user != null)
|
||||
p.setProperty("user", user);
|
||||
if (password != null)
|
||||
p.setProperty("password", password);
|
||||
|
||||
return(getConnection(url, p));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user