mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Fix the VDBE so that it correctly handles the sequence of operations
OP_OpenEphemeral, OP_OpenDup, OP_OpenEphemeral, and OP_OpenDup in that order on the same cursor. FossilOrigin-Name: a1be6ee0188911448c064e2c25fb0ca1daad50f3d50fb49a34430bd09736b4a9
This commit is contained in:
@ -173,5 +173,29 @@ do_execsql_test 4.1 {
|
||||
);
|
||||
} {1}
|
||||
|
||||
# 2020-01-18 chrome ticket 1043236
|
||||
# Correct handling of the sequence:
|
||||
# OP_OpenEphem
|
||||
# OP_OpenDup
|
||||
# Op_OpenEphem
|
||||
# OP_OpenDup
|
||||
#
|
||||
do_execsql_test 4.2 {
|
||||
SELECT (
|
||||
WITH t1(a) AS (VALUES(1))
|
||||
SELECT (
|
||||
WITH t2(b) AS (
|
||||
WITH t3(c) AS (
|
||||
WITH t4(d) AS (VALUES('elvis'))
|
||||
SELECT t4a.d FROM t4 AS t4a JOIN t4 AS t4b LEFT JOIN t4 AS t4c
|
||||
)
|
||||
SELECT c FROM t3 WHERE a = 1
|
||||
)
|
||||
SELECT t2a.b FROM t2 AS t2a JOIN t2 AS t2x
|
||||
)
|
||||
FROM t1 GROUP BY 1
|
||||
)
|
||||
GROUP BY 1;
|
||||
} {elvis}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user