Commit Graph
1 Commits
Author SHA1 Message Date
Afloat 09ef67dcff Retain only the requested SQLite row page (R3.12) (#1544)
Reading a page of rows deep in a SQLite table kept every decoded row before the offset, even when one row was asked for, and a zero-sized first page fell into the walk's unlimited mode. A 67 MB database with 16,384 rows of 4,000-byte text ran out of memory under a 128 MiB limit reading its last row. Rows before the offset are now counted and dropped as they're read, the walk stops once the requested range is consumed, and a zero-sized page reads no cells. Offsets, unreadable-cell notes, rowid aliases, added-column defaults, key order and WITHOUT ROWID handling are unchanged.
2026-11-11 00:36:01 +07:00