Skip to content

Commit

Permalink
upgrade mssql driver (#126)
Browse files Browse the repository at this point in the history
* upgrade mssql driver

* add encrypt

---------

Co-authored-by: tangjiafu <[email protected]>
  • Loading branch information
laglangyue and tangjiafu authored Apr 5, 2024
1 parent 09a091d commit 7630c49
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ object JdbcContainerOffsetStoreSpec {
new MSSQLServerContainer("mcr.microsoft.com/mssql/server:2019-CU8-ubuntu-16.04")
container.acceptLicense()
container.withInitScript("db/default-init.sql")
container.withUrlParam("integratedSecurity", "false")
container.withUrlParam("encrypt", "false")
container
}
}
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ object Dependencies {
val h2Driver = Compile.h2Driver % allTestConfig
val postgresDriver = "org.postgresql" % "postgresql" % "42.7.3" % allTestConfig
val mysqlDriver = "mysql" % "mysql-connector-java" % "8.0.33" % allTestConfig
val msSQLServerDriver = "com.microsoft.sqlserver" % "mssql-jdbc" % "8.4.1.jre8" % allTestConfig
val msSQLServerDriver = "com.microsoft.sqlserver" % "mssql-jdbc" % "12.6.1.jre8" % allTestConfig
val oracleDriver = "com.oracle.ojdbc" % "ojdbc8" % "19.3.0.0" % allTestConfig

val logback = "ch.qos.logback" % "logback-classic" % Versions.logback % allTestConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ object SlickContainerOffsetStoreSpec {

override protected def initContainer(container: JdbcDatabaseContainer[_]): JdbcDatabaseContainer[_] = {
container.asInstanceOf[MSSQLServerContainer[_]].acceptLicense()
container.withUrlParam("integratedSecurity", "false")
container.withUrlParam("encrypt", "false")
super.initContainer(container)
}

Expand Down

0 comments on commit 7630c49

Please sign in to comment.