mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Follow-up to [68db1ff9c44fa9c3]: The number of registers needed by
PRAGMA foreign_key_check was increased too late for an assert() deep down inside of sqlite3ExprCode(). So move the size increase a little earlier. [forum:/forumpost/79c9e4797d|Forum post 79c9e4797d]. FossilOrigin-Name: 7072404ad0267b8ee774b2804ea59ea28e29316521d76d76a701595e51d1be97
This commit is contained in:
@ -223,6 +223,7 @@ do_execsql_test 6.2 {
|
||||
} {}
|
||||
|
||||
# 2021-07-03 https://sqlite.org/forum/forumpost/a6b0c05277
|
||||
# 2021-07-07 https://sqlite.org/forum/forumpost/79c9e4797d
|
||||
# Failure to allocate enough registers in the VDBE for a
|
||||
# PRAGMA foreign_key_check when the foreign key has more
|
||||
# columns than the table.
|
||||
@ -234,6 +235,11 @@ do_execsql_test 7.1 {
|
||||
INSERT INTO t1 VALUES(1,2,3);
|
||||
PRAGMA foreign_key_check;
|
||||
} {t1 1 t0 0}
|
||||
do_execsql_test 7.2 {
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1(a,b,c AS(1),d, FOREIGN KEY(c,d,b,a,b,d,b,c) REFERENCES t0);
|
||||
PRAGMA foreign_key_check;
|
||||
} {}
|
||||
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user