Skip to content

Commit

Permalink
fix: fixed the missing single quotation surrounding the function name…
Browse files Browse the repository at this point in the history
… of JpqlFunctionSerializer
  • Loading branch information
cj848 committed Nov 22, 2023
1 parent bae640e commit 8233f0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class JpqlFunctionSerializer : JpqlSerializer<JpqlFunction<*>> {
writer.write("FUNCTION")

writer.writeParentheses {
writer.write("'")
writer.write(part.name)
writer.write("'")

if (IterableUtils.isNotEmpty(part.args)) {
writer.write(",")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ class JpqlFunctionSerializerTest : WithAssertions {
verifySequence {
writer.write("FUNCTION")
writer.writeParentheses(any())
writer.write("'")
writer.write(functionName1)
writer.write("'")
writer.write(",")
writer.write(" ")
writer.writeEach(expressions, ", ", "", "", any())
Expand All @@ -86,7 +88,9 @@ class JpqlFunctionSerializerTest : WithAssertions {
verifySequence {
writer.write("FUNCTION")
writer.writeParentheses(any())
writer.write("'")
writer.write(functionName1)
writer.write("'")
}
}
}

0 comments on commit 8233f0c

Please sign in to comment.