You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying jdbc url for MS SQL Server like this: jdbc:tc:sqlserver:2017-CU12://somehost:someport;databaseName=test
it will throw an exception:
Caused by: java.lang.UnsupportedOperationException: Database name sqlserver not supported
at org.testcontainers.jdbc.ContainerDatabaseDriver.connect(ContainerDatabaseDriver.java:99) ~[jdbc-1.10.1.jar:na]
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:119) ~[HikariCP-3.2.0.jar:na]
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:369) ~[HikariCP-3.2.0.jar:na]
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:198) ~[HikariCP-3.2.0.jar:na]
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:467) ~[HikariCP-3.2.0.jar:na]
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:541) ~[HikariCP-3.2.0.jar:na]
Reason: MSSQLServerContainerProvider checks support by comparing variable NAME in MSSQLServerContainer with database type in url Solution: change NAME to "sqlserver" to support connection url Example project with error: https://github.com/neetkee/tc-mssql-naming
The text was updated successfully, but these errors were encountered:
When specifying jdbc url for MS SQL Server like this:
jdbc:tc:sqlserver:2017-CU12://somehost:someport;databaseName=test
it will throw an exception:
Reason: MSSQLServerContainerProvider checks support by comparing variable NAME in MSSQLServerContainer with database type in url
Solution: change NAME to "sqlserver" to support connection url
Example project with error: https://github.com/neetkee/tc-mssql-naming
The text was updated successfully, but these errors were encountered: