aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <>2022-12-14 18:34:05 +0000
committerdrh <>2022-12-14 18:34:05 +0000
commit70ac36e877637b4554d800163dcd2cefd84db543 (patch)
treec7fb5a6fafe62b826bc6c112931bad54db147d36 /src/sqliteInt.h
parent1a1d8bbdc3c96559e7bd64c020d21a567b78bcb1 (diff)
parent604314d94ef11eaaead34779c24fb250d127ac42 (diff)
downloadsqlite-70ac36e877637b4554d800163dcd2cefd84db543.tar.gz
sqlite-70ac36e877637b4554d800163dcd2cefd84db543.zip
Adjust the query planner to be more aggressive about using co-routines rather
than materializing subqueries and views. Implementation of enhancement request [73ebbb3a3d1a7bd3]. FossilOrigin-Name: 0b58d1b354a0f91bafeafee102acedd4654dc420afdf4eb4aaac9bf5bcb63c1f
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 21b23d2ad..c012451a3 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -1844,6 +1844,7 @@ struct sqlite3 {
#define SQLITE_FlttnUnionAll 0x00800000 /* Disable the UNION ALL flattener */
/* TH3 expects this value ^^^^^^^^^^ See flatten04.test */
#define SQLITE_IndexedExpr 0x01000000 /* Pull exprs from index when able */
+#define SQLITE_Coroutines 0x02000000 /* Co-routines for subqueries */
#define SQLITE_AllOpts 0xffffffff /* All optimizations */
/*
@@ -3465,6 +3466,7 @@ struct Select {
#define SF_MultiPart 0x2000000 /* Has multiple incompatible PARTITIONs */
#define SF_CopyCte 0x4000000 /* SELECT statement is a copy of a CTE */
#define SF_OrderByReqd 0x8000000 /* The ORDER BY clause may not be omitted */
+#define SF_UpdateFrom 0x10000000 /* Query originates with UPDATE FROM */
/* True if S exists and has SF_NestedFrom */
#define IsNestedFrom(S) ((S)!=0 && ((S)->selFlags&SF_NestedFrom)!=0)