From 1af7e04537d385b218bb864677a8cf65c4124492 Mon Sep 17 00:00:00 2001 From: Chiri Vulpes Date: Mon, 30 Dec 2024 18:01:14 +1300 Subject: [PATCH] Fix sql`` not including next sql segment after a sub-sql`` interpolation --- src/sql.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sql.ts b/src/sql.ts index e68865b..aa8c807 100644 --- a/src/sql.ts +++ b/src/sql.ts @@ -83,6 +83,7 @@ namespace _ { if (subData) resultInterpolations ??= topLayerInterpolations.slice(0, i) text += recurse(subData) + text += segments[i + 1] continue } @@ -120,6 +121,7 @@ namespace _ { if (interpolation instanceof SQL) { text += recurse(interpolation.#data) + text += segments[i + 1] continue }