Skip to content

Commit 839f80d

Browse files
committed
Add null support to literal list
Signed-off-by: worksofliam <[email protected]>
1 parent 52d4ef5 commit 839f80d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/views/results/binding.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export function getLiteralsFromStatement(group: StatementGroup): SqlParameter[]
4646
} else {
4747
literals.push(Number(token.value));
4848
}
49+
} else if (tokenIs(token, `word`, `NULL`)) {
50+
literals.push(null);
4951
}
5052
}
5153
}

0 commit comments

Comments
 (0)