aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordan <Dan Kennedy>2024-06-07 21:00:42 +0000
committerdan <Dan Kennedy>2024-06-07 21:00:42 +0000
commit5525ac1049ad73e6ddb1ad444993cc32d9980e4e (patch)
tree037b0d11e5305bbdce55367c1f4db74da9b54f4f /src/sqliteInt.h
parentdf9471b1b55e956fec7f25392bfe7fc5ca481202 (diff)
downloadsqlite-5525ac1049ad73e6ddb1ad444993cc32d9980e4e.tar.gz
sqlite-5525ac1049ad73e6ddb1ad444993cc32d9980e4e.zip
Experimental optimization to rewrite a SELECT with an EXISTS(...) expression in the WHERE clause as a join.
FossilOrigin-Name: 972a33db0b0e924b78d5309d222d8ea298bd59c72da14ea2d14e8e2caaad1e0a
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 8866b69ea..8d104bc25 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -3827,6 +3827,7 @@ struct Parse {
u8 prepFlags; /* SQLITE_PREPARE_* flags */
u8 withinRJSubrtn; /* Nesting level for RIGHT JOIN body subroutines */
u8 bHasWith; /* True if statement contains WITH */
+ u8 bHasExists; /* Has a correlated "EXISTS (SELECT ....)" expression */
#if defined(SQLITE_DEBUG) || defined(SQLITE_COVERAGE_TEST)
u8 earlyCleanup; /* OOM inside sqlite3ParserAddCleanup() */
#endif