limbo/cli
Jussi Saurio 69d8a73028
Merge 'use virtual root page for sqlite_schema' from Mikaël Francoeur
This PR fixes a problem where `sqlite_schema` could be read before page
1 was allocated.
The fix is similar to that in SQLite. In SQLite, if `btreeCursor()` sees
that the root page is 1 and that the b-tree is empty, it sets the page
to 0 ([here](https://github.com/sqlite/sqlite/blob/master/src/btree.c#L4
691-L4696)). SQLite's `moveToRoot()` then uses this special value to
return `CURSOR_INVALID` with no rows ([here](https://github.com/sqlite/s
qlite/blob/master/src/btree.c#L5538-L5540)).
Fixes https://github.com/tursodatabase/turso/issues/2449

Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com>

Closes #2551
2025-08-14 11:08:11 +03:00
..
commands use virtual root page for sqlite_schema 2025-08-13 16:31:21 -04:00
config cli: fix not being able to redirect traces to a file from inline query 2025-07-16 13:55:48 +03:00
docs config docs 2025-05-17 15:51:17 -03:00
app.rs Merge 'use virtual root page for sqlite_schema' from Mikaël Francoeur 2025-08-14 11:08:11 +03:00
build.rs adding table colors 2025-03-06 15:52:20 -03:00
Cargo.toml global allocator should not be set for library, only for executables 2025-08-07 13:41:50 -03:00
helper.rs make all run_once be run under statement or connection so that rollback is called 2025-07-07 11:51:25 -03:00
input.rs Rename .copy -> .clone 2025-08-07 16:27:07 -04:00
main.rs global allocator should not be set for library, only for executables 2025-08-07 13:41:50 -03:00
mcp_server.rs Fix clippy warnings 2025-07-18 11:26:10 -03:00
opcodes_dictionary.rs fix: lint warnings 2024-07-08 22:43:11 +05:30
SQL.sublime-syntax highlight candidate 2025-03-06 16:33:23 -03:00