sqlite-vec/tests/__snapshots__
Alex Garcia ee9bd2ba4d
Fix SQLITE_DONE leak in ClearMetadata that broke DELETE on long text metadata (#274) (#275)
vec0Update_Delete_ClearMetadata's long-text branch runs a DELETE via
sqlite3_step, which returns SQLITE_DONE (101) on success. The code
checked for failure but never normalized the success case to SQLITE_OK.
The function's epilogue returned SQLITE_DONE as-is, which the caller
(vec0Update_Delete) treated as an error, aborting the DELETE scan and
silently leaving rows behind.

- Normalize rc to SQLITE_OK after successful sqlite3_step in ClearMetadata
- Move sqlite3_finalize before the rc check (cleanup on all paths)
- Add test_delete_by_metadata_with_long_text regression test
- Update test_deletes snapshot (row 3 now correctly deleted)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 16:39:59 -07:00
..
test-auxiliary.ambr Complete vec0 DELETE: zero data, reclaim empty chunks, fix metadata rc bug (#268) 2026-03-17 00:02:36 -07:00
test-general.ambr test: shadow snapshot update 2026-02-13 06:59:18 -08:00
test-insert-delete.ambr Redact version from info table snapshot to avoid test failures on version bumps 2026-03-17 00:09:28 -07:00
test-knn-distance-constraints.ambr Support constaints on distance column in KNN queries, for pagination and range queries (#166) 2026-02-13 06:38:26 -08:00
test-metadata.ambr Fix SQLITE_DONE leak in ClearMetadata that broke DELETE on long text metadata (#274) (#275) 2026-03-30 16:39:59 -07:00
test-partition-keys.ambr PARTITION KEY support (#122) 2024-11-20 00:02:04 -08:00