mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Fix a segfault that can be caused by an INSTEAD OF trigger on a view that includes an expression of the form "table.column" in the select list. (CVS 5940)
FossilOrigin-Name: 88a09dbb4b54be4010aae767157a1e2002237909
This commit is contained in:
@ -735,6 +735,18 @@ do_test trigger2-8.6 {
|
||||
}
|
||||
} {3 103 5 205 4 304 9 109 11 211 10 310}
|
||||
|
||||
# At one point the following was causing a segfault.
|
||||
do_test trigger2-9.1 {
|
||||
execsql {
|
||||
CREATE TABLE t3(a TEXT, b TEXT);
|
||||
CREATE VIEW v3 AS SELECT t3.a FROM t3;
|
||||
CREATE TRIGGER trig1 INSTEAD OF DELETE ON v3 BEGIN
|
||||
SELECT 1;
|
||||
END;
|
||||
DELETE FROM v3 WHERE a = 1;
|
||||
}
|
||||
} {}
|
||||
|
||||
} ;# ifcapable view
|
||||
|
||||
integrity_check trigger2-9.9
|
||||
|
Reference in New Issue
Block a user