1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Add test cases to improve coverage of VDBE branches. Still some to go.

FossilOrigin-Name: 4cef609d61de272cfdc2b39e1d49c7cd56ec834086bd63095116ff98f4d402bd
This commit is contained in:
dan
2019-04-04 17:58:34 +00:00
parent 80ac9cb3c0
commit b84b38fd89
8 changed files with 198 additions and 13 deletions

View File

@ -1057,5 +1057,19 @@ do_catchsql_test 16.2 {
HAVING raise(ABORT, 'msg');
} {1 {RAISE() may only be used within a trigger-program}}
#-------------------------------------------------------------------------
# Datatype mismatch on IPK when there are BEFORE triggers.
#
do_execsql_test 17.0 {
CREATE TABLE xyz(x INTEGER PRIMARY KEY, y, z);
CREATE TRIGGER xyz_tr BEFORE INSERT ON xyz BEGIN
SELECT new.x;
END;
}
do_catchsql_test 17.1 {
INSERT INTO xyz VALUES('hello', 2, 3);
} {1 {datatype mismatch}}
finish_test