Add comments to the WHERE_DISTINCT_* macros. No changes to code.
FossilOrigin-Name: 82320501904f65030622a67836ba30f412169056
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index e20e797..9d8d742 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -1985,7 +1985,7 @@
u16 wctrlFlags; /* Flags originally passed to sqlite3WhereBegin() */
u8 okOnePass; /* Ok to use one-pass algorithm for UPDATE or DELETE */
u8 untestedTerms; /* Not all WHERE terms resolved by outer loop */
- u8 eDistinct;
+ u8 eDistinct; /* One of the WHERE_DISTINCT_* values below */
SrcList *pTabList; /* List of tables in the join */
int iTop; /* The very beginning of the WHERE loop */
int iContinue; /* Jump here to continue with next record */
@@ -1997,8 +1997,10 @@
WhereLevel a[1]; /* Information about each nest loop in WHERE */
};
-#define WHERE_DISTINCT_UNIQUE 1
-#define WHERE_DISTINCT_ORDERED 2
+/* Allowed values for WhereInfo.eDistinct */
+#define WHERE_DISTINCT_NOT 0 /* May contain non-adjacent duplicates */
+#define WHERE_DISTINCT_UNIQUE 1 /* No duplicates */
+#define WHERE_DISTINCT_ORDERED 2 /* All duplicates are adjacent */
/*
** A NameContext defines a context in which to resolve table and column