mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Make a hard copy of the results of a subquery lest the result of the
subquery be referenced after a change to the table that generated the subquery result. FossilOrigin-Name: 9c0d80907b4dee8ee8f205c2ebdb759f5ba1d771
This commit is contained in:
@ -219,4 +219,14 @@ do_catchsql_test misc4-7.1 {
|
||||
VACUUM;
|
||||
} {1 {unrecognized token: "[M%s%s%s%s%s%s%s%s%s%s%s%s%s"}}
|
||||
|
||||
# 2015-05-18. Use of ephermeral Mem content after the cursor that holds
|
||||
# the canonical content has moved on.
|
||||
#
|
||||
do_execsql_test misc4-7.2 {
|
||||
CREATE TABLE t0(a,b);
|
||||
INSERT INTO t0 VALUES(1,0),(2,0);
|
||||
UPDATE t0 SET b=9 WHERE a AND (SELECT a FROM t0 WHERE a);
|
||||
SELECT * FROM t0 ORDER BY +a;
|
||||
} {1 9 2 9}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user