diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index ad60c8cd0..df452003c 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,5 @@ # Scala Steward: Reformat with scalafmt 3.7.10 9bcedec20a4fc7adedce8aea4921c05b0c7acfa4 + +# Scala Steward: Reformat with scalafmt 3.8.2 +586dc324812442ed0796bd1979aea8c5bbe2a254 diff --git a/.scalafmt.conf b/.scalafmt.conf index 858d639ff..e221fcb6c 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = "3.8.1" +version = "3.8.2" maxColumn = 120 align.preset = most continuationIndent.defnSite = 2 diff --git a/mysql/src/main/scala/zio/sql/mysql/MysqlRenderModule.scala b/mysql/src/main/scala/zio/sql/mysql/MysqlRenderModule.scala index 353a682dd..7be02cd59 100644 --- a/mysql/src/main/scala/zio/sql/mysql/MysqlRenderModule.scala +++ b/mysql/src/main/scala/zio/sql/mysql/MysqlRenderModule.scala @@ -412,7 +412,7 @@ trait MysqlRenderModule extends MysqlSqlModule { self => render( lit.value.asInstanceOf[Chunk[Byte]].map("""\%02X""" format _).mkString("x'", "", "'") ) // todo fix `cast` infers correctly but map doesn't work for some reason - case tt @ TChar => + case tt @ TChar => render("'", tt.cast(lit.value), "'") // todo is this the same as a string? fix escaping case tt @ TInstant => render("TIMESTAMP '", tt.cast(lit.value), "'") @@ -448,7 +448,7 @@ trait MysqlRenderModule extends MysqlSqlModule { self => render(lit.value) case TString => render("'", lit.value, "'") // todo fix escaping - case _ => + case _ => render(lit.value) // todo fix add TypeTag.Nullable[_] => } }