Skip to content

Commit

Permalink
Fix nullable in left join
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-dldc committed Sep 15, 2024
1 parent 7bc0bfe commit 355c8fc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,12 @@ function createQuery<

const newInColsRef: ColsRefInnerJoined<InCols, RTable, Alias> = {
...internal.inputColsRefs,
[alias]: tableCte[PRIV].outputColsRefs,
[alias]: mapObject(tableCte[PRIV].outputColsRefs, (_, col) => {
return {
...col,
[PRIV]: { ...col[PRIV], nullable: true },
};
}),
};

const joinItem: builder.SelectStmt.JoinItem = {
Expand Down

0 comments on commit 355c8fc

Please sign in to comment.