From 6b0e074c695e4e7057061e222b259d8e74e70696 Mon Sep 17 00:00:00 2001 From: Ilya Vasin <ilya.vasin@ringcentral.com> Date: Fri, 20 Sep 2024 11:44:08 +0200 Subject: [PATCH] fix build --- .../scala/com/ringcentral/cassandra4io/cql/package.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/scala/com/ringcentral/cassandra4io/cql/package.scala b/src/main/scala/com/ringcentral/cassandra4io/cql/package.scala index 6e5fd5a..5452a9e 100644 --- a/src/main/scala/com/ringcentral/cassandra4io/cql/package.scala +++ b/src/main/scala/com/ringcentral/cassandra4io/cql/package.scala @@ -125,9 +125,9 @@ package object cql { QueryTemplate[V, Row]( ctx.parts .foldLeft[(HList, StringBuilder)]((params, new StringBuilder())) { - case ((Const(const) :: tail, builder), part) => (tail, builder.addAll(part).addAll(const)) - case ((_ :: tail, builder), part) => (tail, builder.addAll(part).addAll("?")) - case ((HNil, builder), part) => (HNil, builder.addAll(part)) + case ((Const(const) :: tail, builder), part) => (tail, builder.appendAll(part).appendAll(const)) + case ((_ :: tail, builder), part) => (tail, builder.appendAll(part).appendAll("?")) + case ((HNil, builder), part) => (HNil, builder.appendAll(part)) } ._2 .toString(),