Skip to content

Commit

Permalink
fix: Modified the DSL.jsonEntry (closes #7)
Browse files Browse the repository at this point in the history
Previously the jsonEntry was
```
is ColumnField -> {
    DSL.jsonEntry(
             alias,
             DSL.field(DSL.name(field.name))
    )
}
```

Modified that so that, the issue of aliasing is resolved
```
is ColumnField -> {
    DSL.jsonEntry(
             alias,
             DSL.field(DSL.name(alias))
    )
}
```
  • Loading branch information
nihxdr authored Sep 18, 2024
1 parent 6875748 commit 1c9c2c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ object JsonQueryGenerator : BaseQueryGenerator() {
is ColumnField -> {
DSL.jsonEntry(
alias,
DSL.field(DSL.name(field.column))
DSL.field(DSL.name(alias))
)
}

Expand Down

0 comments on commit 1c9c2c0

Please sign in to comment.