sanhua.zh wrote:
>BEGIN IMMEDIATE;
>SAVEPOINT s1;
>INSERT INTO t VALUES(2);
>ROLLBACK TO SAVEPOINT s1;
>COMMIT;
>SOMETHING appended into the end of WAL file.
>BUT why? We should have nothing to write.
It's information about the WAL file itself.
The WAL file must be initialized at some time, so i
Here is the reproduction path.
```
sqlite3 db
PRAGMA journal_mode=WAL;
CREATE TABLE t(i INTEGER);
INSERT INTO t VALUES(1);
PRAGMA wal_checkpoint=TRUNCATE;
// check the WAL file size without checkpoint/close sqlite connection
ls -l | grep wal
// print 0 db-wal
BEGIN IMMEDIATE;
SAVEPOINT s1;
IN
2 matches
Mail list logo