Skip to content

Commit

Permalink
Fix sql not including next sql segment after a sub-sql interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiriVulpes committed Dec 30, 2024
1 parent 95ca8f7 commit 1af7e04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ namespace _ {
if (subData)
resultInterpolations ??= topLayerInterpolations.slice(0, i)
text += recurse(subData)
text += segments[i + 1]
continue
}

Expand Down Expand Up @@ -120,6 +121,7 @@ namespace _ {

if (interpolation instanceof SQL) {
text += recurse(interpolation.#data)
text += segments[i + 1]
continue
}

Expand Down

0 comments on commit 1af7e04

Please sign in to comment.