SQLite

View Ticket
Login
Ticket Hash: 91e86951016a680239502acbc0611b86e8ffe2b1
Title: Segfault in table with generated columns
Status: Fixed Type: Code_Defect
Severity: Important Priority: Immediate
Subsystem: Unknown Resolution: Fixed
Last Modified: 2019-10-27 22:22:42
Version Found In: 3.30.0
User Comments:
mrigger added on 2019-10-27 21:29:10:

Consider the following test case:

CREATE TABLE t0(c0 INTEGER PRIMARY KEY GENERATED ALWAYS AS(1), c1 UNIQUE GENERATED ALWAYS AS(1), c2 UNIQUE);
INSERT INTO t0 VALUES(NULL); -- Segmentation fault

Unexpectedly, the INSERT results in a segfault. This is not a security issue, since generated columns are not yet available in a release version.