mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-10 01:02:56 +03:00
Disable the flattening optimization if the parent query is the recursive part of a recursive CTE and the sub-query is a compound query.
FossilOrigin-Name: 6bfa387e82de47ca1f40225fe28d873e29d6f481
This commit is contained in:
@@ -1065,8 +1065,7 @@ Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){
|
||||
pNew->addrOpenEphm[1] = -1;
|
||||
pNew->addrOpenEphm[2] = -1;
|
||||
pNew->pWith = withDup(db, p->pWith);
|
||||
assert( p->pRecurse==0 );
|
||||
pNew->pRecurse = 0;
|
||||
pNew->pRecurse = p->pRecurse;
|
||||
return pNew;
|
||||
}
|
||||
#else
|
||||
|
Reference in New Issue
Block a user