Fix inconsistency in building JDBC URL.

This commit is contained in:
Scott Frederick
2017-10-23 14:00:24 -05:00
parent 8b774ea392
commit eaa53f8cd6

View File

@@ -52,7 +52,7 @@ public abstract class RelationalServiceInfo extends UriBasedServiceInfo {
private String formatQuery() {
if (getQuery() != null) {
if (getUserName() == null && getPassword() == null) {
if (formatUserinfo().isEmpty()) {
return String.format("?%s", getQuery());
} else {
return String.format("&%s", getQuery());