1
0
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:
dan
2014-01-16 10:58:39 +00:00
parent 7b19f25247
commit 8290c2ad5a
4 changed files with 22 additions and 14 deletions

View File

@@ -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