mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 03:54:21 +01:00
- `OP_NewRowId` now generates new rowid semi randomly when the largest rowid in the table is `i64::MAX`. - Introduced new `LimboError` variant `DatabaseFull` to signify that database might be full (SQLite behaves this way returning `SQLITE_FULL`). Now: ```SQL turso> CREATE TABLE q(x INTEGER PRIMARY KEY, y); turso> INSERT INTO q VALUES (9223372036854775807, 1); turso> INSERT INTO q(y) VALUES (2); turso> INSERT INTO q(y) VALUES (3); turso> SELECT * FROM q; ┌─────────────────────┬───┐ │ x │ y │ ├─────────────────────┼───┤ │ 1841427626667347484 │ 2 │ ├─────────────────────┼───┤ │ 4000338366725695791 │ 3 │ ├─────────────────────┼───┤ │ 9223372036854775807 │ 1 │ └─────────────────────┴───┘ ``` Fixes: https://github.com/tursodatabase/turso/issues/1977 Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com> Closes #1985