Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ lazy val catsVersion = "2.13.0"
lazy val catsEffectVersion = "3.6.3"
lazy val circeVersion = "0.14.14"
lazy val fs2Version = "3.12.0"
lazy val h2Version = "1.4.200"
lazy val h2Version = "2.3.232"
lazy val hikariVersion = "6.3.2" // N.B. Hikari v4 introduces a breaking change via slf4j v2
lazy val kindProjectorVersion = "0.11.2"
lazy val mysqlVersion = "9.3.0"
Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/test/scala/doobie/issue/706.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class `706` extends munit.ScalaCheckSuite {
)

val setup: ConnectionIO[Unit] =
sql"CREATE TABLE IF NOT EXISTS test (value INTEGER)".update.run.void
sql"CREATE TABLE IF NOT EXISTS test (test_value INTEGER)".update.run.void

def insert[F[_]: Foldable, A: Write](as: F[A]): ConnectionIO[Int] =
Update[A]("INSERT INTO test VALUES (?)").updateMany(as)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ object Instances {
jdbcTarget = JdbcType.VarChar,
put = (ps, n, a) => ps.setBytes(n, a),
update = (rs, n, a) => rs.updateBytes(n, a),
checkedVendorType = Some("VARCHAR")
checkedVendorType = Some("CHARACTER VARYING")
)
.tcontramap { a =>
a.noSpaces.getBytes(UTF_8)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class H2JsonSuite extends CatsEffectSuite {

def inOut[A: Write: Read](col: String, a: A) =
for {
_ <- Update0(s"CREATE TEMPORARY TABLE TEST (value $col)", None).run
a0 <- Update[A](s"INSERT INTO TEST VALUES (?)", None).withUniqueGeneratedKeys[A]("value")(a)
_ <- Update0(s"CREATE TEMPORARY TABLE TEST (test_value $col)", None).run
a0 <- Update[A](s"INSERT INTO TEST VALUES (?)", None).withUniqueGeneratedKeys[A]("test_value")(a)
} yield a0

def testInOut[A](col: String, a: A, t: Transactor[IO])(implicit m: Get[A], p: Put[A]) = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class RefinedSuite extends munit.CatsEffectSuite {

def insertOptionalPositiveInt(v: Option[PositiveInt]) = {
val queryRes = for {
_ <- Update0(s"CREATE LOCAL TEMPORARY TABLE TEST (value INT)", None).run
_ <- Update0(s"CREATE LOCAL TEMPORARY TABLE TEST (int_value INT)", None).run
_ <- sql"INSERT INTO TEST VALUES ($v)".update.run
} yield ()
queryRes.transact(xa).assert
Expand Down
4 changes: 2 additions & 2 deletions modules/specs2/src/test/scala/doobie/specs2/beforeall.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class beforeall extends Specification with IOChecker with BeforeAll {
import cats.effect.unsafe.implicits.global

// Setup
val initQ = sql"create table some_table (value varchar not null)".update
val initQ = sql"create table some_table (test_value varchar not null)".update

val targetQ = sql"select value from some_table".query[String]
val targetQ = sql"select test_value from some_table".query[String]

val transactor: Transactor[IO] = Transactor.fromDriverManager[IO](
driver = "org.h2.Driver",
Expand Down