Skip to content

Commit 9ffeb06

Browse files
committed
Convert CharSequences to Strings explicitly.
The Scala 3 compiler reports an error: ```scala -- [E008] Not Found Error: /Users/matt/scalasql/scalasql/core/src/SqlStr.scala:53:33 53 | if (castParams) part + s"CAST(? AS $jdbcTypeString)" else part + "?" | ^^^^^^ |value + is not a member of CharSequence, but could be made available as an extension method. | |One of the following imports might make progress towards fixing the problem: | | import scala.math.Fractional.Implicits.infixFractionalOps | import scala.math.Integral.Implicits.infixIntegralOps | import scala.math.Numeric.Implicits.infixNumericOps | import sourcecode.Text.generate ```
1 parent 2356551 commit 9ffeb06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scalasql/core/src/SqlStr.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ object SqlStr {
5050
case (part, null) => part
5151
case (part, param) =>
5252
val jdbcTypeString = param.mappedType.castTypeString
53-
if (castParams) part + s"CAST(? AS $jdbcTypeString)" else part + "?"
53+
if (castParams) part.toString + s"CAST(? AS $jdbcTypeString)" else part.toString + "?"
5454
}
5555
.mkString
5656

0 commit comments

Comments
 (0)