mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
When an INSERT is receiving content from a SELECT, run an OP_ReleaseReg opcode
at the top of each iteration of the loop in order to prevent spurious OP_SCopy misuse complaints. Ticket [de4b04149b9fdeae] FossilOrigin-Name: 6afadd3b3a40b0ef29fd14fb24c2a4b9479483e5f8b9125ce02d8daae662207f
This commit is contained in:
@ -548,7 +548,16 @@ do_execsql_test gencol1-18.20 {
|
||||
SELECT * FROM t0;
|
||||
} {0 0 0}
|
||||
|
||||
|
||||
|
||||
# 2019-12-27 ticket de4b04149b9fdeae
|
||||
#
|
||||
reset_db
|
||||
do_catchsql_test gencol1-19.10 {
|
||||
CREATE TABLE t0(
|
||||
c0 INT AS(2) UNIQUE,
|
||||
c1 TEXT UNIQUE,
|
||||
FOREIGN KEY(c0) REFERENCES t0(c1)
|
||||
);
|
||||
INSERT INTO t0(c1) VALUES(0.16334143182538696), (0);
|
||||
} {1 {UNIQUE constraint failed: t0.c0}}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user