View Ticket
Ticket Hash: 4fc08501f4e5669294f322d54cca3706bf862fa6
Title: Segfault when inserting into table with generated columns
Status: Fixed Type: Code_Defect
Severity: Important Priority: Immediate
Subsystem: Unknown Resolution: Fixed
Last Modified: 2019-11-06 22:20:33
Version Found In: 3.30.0
User Comments:
mrigger added on 2019-11-06 15:41:54:

The following test case causes a segfault on trunk, on my machine:

CREATE TABLE t0(c0 AS ((c4, 9, c4) < ('a', c1, 1)), c1 AS (1) NOT NULL, c2, c3 CHECK  ((x'56', 0) = (c1, 0)), c4 NOT NULL);
PRAGMA integrity_check;
INSERT INTO t0 VALUES (0, 0, 0), (0, 0, 0); -- unexpected: Segmentation fault