1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Avoid manifesting a CTE (or other view) multiple times when it is possible to

reuse the first manifestation.

FossilOrigin-Name: 9692f510803c9b9725abb687d7c10fbc0d5ed784479ec6f3fcc55925a87fe16d
This commit is contained in:
drh
2021-02-13 16:39:24 +00:00
parent e8f1490f55
commit 8794c68a35
5 changed files with 45 additions and 13 deletions

View File

@@ -3184,6 +3184,7 @@ struct Select {
#define SF_View 0x0200000 /* SELECT statement is a view */
#define SF_NoopOrderBy 0x0400000 /* ORDER BY is ignored for this query */
#define SF_UpdateFrom 0x0800000 /* Statement is an UPDATE...FROM */
#define SF_PushDown 0x1000000 /* SELECT has be modified by push-down opt */
/*
** The results of a SELECT can be distributed in several ways, as defined