From 42587c6bc4ad4c67417699d29be48d0ab20bbc5f Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sat, 15 Jun 2024 05:04:15 +0000 Subject: [PATCH 1/3] Update scalafmt-core to 3.8.2 --- .scalafmt.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scalafmt.conf b/.scalafmt.conf index 858d639f..e221fcb6 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 From 586dc324812442ed0796bd1979aea8c5bbe2a254 Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sat, 15 Jun 2024 05:04:41 +0000 Subject: [PATCH 2/3] Reformat with scalafmt 3.8.2 Executed command: scalafmt --non-interactive --- mysql/src/main/scala/zio/sql/mysql/MysqlRenderModule.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysql/src/main/scala/zio/sql/mysql/MysqlRenderModule.scala b/mysql/src/main/scala/zio/sql/mysql/MysqlRenderModule.scala index 353a682d..7be02cd5 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[_] => } } From a1236325a408e0d02f79a81f3ea414a3420d4e4f Mon Sep 17 00:00:00 2001 From: Scala Steward Date: Sat, 15 Jun 2024 05:04:41 +0000 Subject: [PATCH 3/3] Add 'Reformat with scalafmt 3.8.2' to .git-blame-ignore-revs --- .git-blame-ignore-revs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index ad60c8cd..df452003 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