From 355c8fc953d2b9df1068308d3cb43db462cdb0a9 Mon Sep 17 00:00:00 2001 From: Etienne Deladonchamps Date: Sun, 15 Sep 2024 23:29:31 +0200 Subject: [PATCH] Fix nullable in left join --- src/Query.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Query.ts b/src/Query.ts index 67a2836..c1121c8 100644 --- a/src/Query.ts +++ b/src/Query.ts @@ -294,7 +294,12 @@ function createQuery< const newInColsRef: ColsRefInnerJoined = { ...internal.inputColsRefs, - [alias]: tableCte[PRIV].outputColsRefs, + [alias]: mapObject(tableCte[PRIV].outputColsRefs, (_, col) => { + return { + ...col, + [PRIV]: { ...col[PRIV], nullable: true }, + }; + }), }; const joinItem: builder.SelectStmt.JoinItem = {