Commit 3f3c20b
committed
fix: queryToSql dropped OFFSET 0 due to falsy check
Same class of bug as the LIMIT 0 fix — `if (query.offset)` treated
offset=0 as falsy and omitted the OFFSET clause from generated SQL.
Changed to `if (query.offset !== undefined)`. Added tests for both
LIMIT 0 and OFFSET 0 preservation.1 parent cd254dc commit 3f3c20b
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
391 | 401 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1077 | 1077 | | |
1078 | 1078 | | |
1079 | 1079 | | |
1080 | | - | |
| 1080 | + | |
1081 | 1081 | | |
1082 | 1082 | | |
1083 | 1083 | | |
| |||
0 commit comments