We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d67c024 commit 9720f06Copy full SHA for 9720f06
src/table.mjs
@@ -80,7 +80,7 @@ async function* accumulateQuery(queryRequest) {
80
if (
81
from.table === null ||
82
select.columns === null ||
83
- select.columns?.length === 0
+ (select.columns && select.columns.length === 0)
84
)
85
return;
86
const columns = select.columns.map((c) => `t.${escaper(c)}`);
@@ -97,7 +97,7 @@ async function* accumulateQuery(queryRequest) {
97
}
98
if (slice.to !== null || slice.from !== null) {
99
appendSql(
100
- `\nLIMIT ${slice.to !== null ? slice.to - (slice.from ?? 0) : 1e9}`,
+ `\nLIMIT ${slice.to !== null ? slice.to - (slice.from || 0) : 1e9}`,
101
args
102
);
103
0 commit comments