5 Commits

Author SHA1 Message Date
Jussi Saurio
bc9b682a0a testing: return the init status from the SQLite test extension
sqlite3_limbosqlitetestext_init had no return type, but SQLite calls an
extension's init function as returning an int status code. SQLite then
read whatever was left in the return register. It worked by luck: with
full debug info, rustc at opt-level 0 leaves the callee's result in eax.
With CARGO_PROFILE_DEV_DEBUG=line-tables-only it aligns the stack with
push rax / pop rax around the call instead, the pop puts junk back in
eax, and sqlite3 fails the .load with "error during initialization".
This broke test-sqlite in CI.

Return sqlite3_kvstore_init's status code.
2026-10-14 08:01:53 +03:00
Piotr Rzysko
79e166d722 Implement xBestIndex for kvstore.c
This is to match Rust kv_store implementation.
2025-08-04 19:25:11 +02:00
Piotr Rzysko
000d70f1f3 Propagate info about hidden columns 2025-07-14 07:16:53 +02:00
Nils Koch
2827b86917 chore: fix clippy warnings 2025-06-23 19:52:13 +01:00
Piotr Rzysko
c4fa715036 Add test SQLite KV extension
This extension mimics Limbo's kv_store and is used in tests to verify
that Limbo and SQLite handle extensions in a compatible way.
2025-06-14 05:26:10 +02:00