85e2fdc00a6c0602bcd94010c0a483abc6b87a84
When offset>0 the wrapper added an outer LIMIT N, so run_controlled's _inject_limit bailed (a LIMIT IS present) and truncated was always False — AGGrid could never detect more rows. Fix: for offset>0 probe with LIMIT (N+1) OFFSET M, then compute truncated = len(rows) > N in do_run and slice back to N. offset==0 path unchanged (delegates to extracted _run_transport helper). JSON still reports the user's requested limit N and correct truncated. Adds 3 tests exercising the real do_run offset>0 path (N+1 -> truncated True, N -> False, offset==0 verbatim). 222/222 passing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Description
ThothII
35 MiB
Languages
TypeScript
46.1%
Python
18%
Go
15.1%
JavaScript
12.6%
Shell
4.9%
Other
3.3%