Closed
Description
The following program causes CorruptError:
import apsw
# calls sqlite3_config
apsw.config(apsw.SQLITE_CONFIG_MMAP_SIZE, 8448, - 1)
db = apsw.Connection("testdb")
db.pragma("hexkey", b"hello world".hex())
db.execute("create table x(y); insert into x values(zeroblob(78000))")
db.execute("select * from x").get
CorruptError is returned executing the select. Leaving out the hexkey also does not result in error.
If the mmap value is 8447 or less then the error does not occur. I was setting it to 2 **63 -1.
Metadata
Metadata
Assignees
Labels
No labels