Skip to content

Commit

Permalink
fix: fix poorly implemented serializer code
Browse files Browse the repository at this point in the history
  • Loading branch information
progress0407 committed Feb 21, 2024
1 parent bfb8d48 commit 8b80467
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ class JpqlPowerSerializer : JpqlSerializer<JpqlPower<*>> {

writer.writeParentheses {
delegate.serialize(part.base, writer, context)

writer.write(",")
writer.write(" ")

delegate.serialize(part.exponent, writer, context)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class JpqlPowerSerializerTest {
@Test
fun serialize() {
// given
val part = Expressions.round(
value = expression1,
scale = expression2,
val part = Expressions.power(
base = expression1,
exponent = expression2,
)
val context = TestRenderContext(serializer)

Expand Down

0 comments on commit 8b80467

Please sign in to comment.