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(";");
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
hikariConfig.setJdbcUrl(urlBuilder.toString());
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public class MssqlTestDBContainerManager {
|
|||
.asCompatibleSubstituteFor("mcr.microsoft.com/mssql/server:2017-latest"))
|
||||
.acceptLicense()
|
||||
.withExposedPorts(1433)
|
||||
.withPassword("Mssql123");
|
||||
.withPassword("Mssql12;3");
|
||||
}
|
||||
|
||||
static DatasourceConfiguration createDatasourceConfiguration(MSSQLServerContainer container) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user