fix: fix MsSQL JDBC URL format error (#25094)
This commit is contained in:
parent
3cedd9251f
commit
fb5600a54d
|
|
@ -541,14 +541,6 @@ public class MssqlPlugin extends BasePlugin {
|
||||||
.append(";");
|
.append(";");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StringUtils.hasLength(authentication.getUsername())) {
|
|
||||||
urlBuilder.append("user=").append(authentication.getUsername()).append(";");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (StringUtils.hasLength(authentication.getPassword())) {
|
|
||||||
urlBuilder.append("password=").append(authentication.getPassword()).append(";");
|
|
||||||
}
|
|
||||||
|
|
||||||
addSslOptionsToUrlBuilder(datasourceConfiguration, urlBuilder);
|
addSslOptionsToUrlBuilder(datasourceConfiguration, urlBuilder);
|
||||||
|
|
||||||
hikariConfig.setJdbcUrl(urlBuilder.toString());
|
hikariConfig.setJdbcUrl(urlBuilder.toString());
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ public class MssqlTestDBContainerManager {
|
||||||
.asCompatibleSubstituteFor("mcr.microsoft.com/mssql/server:2017-latest"))
|
.asCompatibleSubstituteFor("mcr.microsoft.com/mssql/server:2017-latest"))
|
||||||
.acceptLicense()
|
.acceptLicense()
|
||||||
.withExposedPorts(1433)
|
.withExposedPorts(1433)
|
||||||
.withPassword("Mssql123");
|
.withPassword("Mssql12;3");
|
||||||
}
|
}
|
||||||
|
|
||||||
static DatasourceConfiguration createDatasourceConfiguration(MSSQLServerContainer container) {
|
static DatasourceConfiguration createDatasourceConfiguration(MSSQLServerContainer container) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user