mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-24 22:11:56 +08: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:
parent
347d73aac2
commit
4c58589f1a
@ -1,3 +1,8 @@
|
||||
2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com>
|
||||
|
||||
* java/sql/DriverManager.java (getConnection): Don't set user/password
|
||||
properties if null.
|
||||
|
||||
2000-12-27 Warren Levy <warrenl@redhat.com>
|
||||
|
||||
Fix for PR libgcj/1358:
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user