aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-05-04 14:45:30 +0000
committerdrh <drh@noemail.net>2016-05-04 14:45:30 +0000
commit91da70728092c246963b7521c51361e4d007f3cf (patch)
tree9085b0ccbed9b6126ab233a29343a27790aae8a4 /src/sqliteInt.h
parent582c080289f2152eea2e0dc5ae33fff38a571e9f (diff)
downloadsqlite-91da70728092c246963b7521c51361e4d007f3cf.tar.gz
sqlite-91da70728092c246963b7521c51361e4d007f3cf.zip
Only disable the one-pass DELETE optimization if the WHERE clause contains
a correlated subquery. Uncorrelated subqueries are allowed. This is a refinement of check-in [3f221f592a9a1] that is the fix for ticket [dc6ebeda9396087]. FossilOrigin-Name: aae389692a2ed2cc92151d51fb2cd5a16921c469
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 76bf80962..783f0f56c 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -2597,6 +2597,7 @@ struct NameContext {
#define NC_InAggFunc 0x0008 /* True if analyzing arguments to an agg func */
#define NC_HasAgg 0x0010 /* One or more aggregate functions seen */
#define NC_IdxExpr 0x0020 /* True if resolving columns of CREATE INDEX */
+#define NC_VarSelect 0x0040 /* A correlated subquery has been seen */
#define NC_MinMaxAgg 0x1000 /* min/max aggregates seen. See note above */
/*