Don't require a non-blank password.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2490 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2008-11-25 20:03:45 +00:00
parent a8b7908a64
commit 19dee7226e
@@ -124,8 +124,7 @@ public class StaticConnectionProvider implements ConnectionProvider
String url = requireProp(props, "url", err);
err = "No driver username specified [ident=" + ident + "].";
String username = requireProp(props, "username", err);
err = "No driver password specified [ident=" + ident + "].";
String password = requireProp(props, "password", err);
String password = props.getProperty("password", "");
String autoCommit = props.getProperty("autocommit");
// if this is a read-only connection, we cache connections by username+url+readOnly to