aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-06-11 18:59:38 +0000
committerdrh <drh@noemail.net>2013-06-11 18:59:38 +0000
commit4f402f26b15902d22f13df5e77cfdc4d8a5622cb (patch)
tree2449f081a13a7bd7c7dd928a27b367c9ebd76ab0 /src/sqliteInt.h
parent8e23daf372c57084e7921e48c1b7968b631bb94d (diff)
downloadsqlite-4f402f26b15902d22f13df5e77cfdc4d8a5622cb.tar.gz
sqlite-4f402f26b15902d22f13df5e77cfdc4d8a5622cb.zip
Improved processing of DISTINCT.
FossilOrigin-Name: ba897100fed291d2025f68d09334f9985312298b
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index d3d6fcf70..b22689462 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -1967,8 +1967,10 @@ struct SrcList {
#define WHERE_ONETABLE_ONLY 0x0040 /* Only code the 1st table in pTabList */
#define WHERE_AND_ONLY 0x0080 /* Don't use indices for OR terms */
#define WHERE_GROUPBY 0x0100 /* pOrderBy is really a GROUP BY */
+#define WHERE_DISTINCTBY 0x0200 /* pOrderby is really a DISTINCT clause */
-/* Allowed values for WhereInfo.eDistinct and DistinctCtx.eTnctType */
+/* Allowed return values from sqlite3WhereIsDistinct()
+*/
#define WHERE_DISTINCT_NOOP 0 /* DISTINCT keyword not used */
#define WHERE_DISTINCT_UNIQUE 1 /* No duplicates */
#define WHERE_DISTINCT_ORDERED 2 /* All duplicates are adjacent */
@@ -2226,7 +2228,7 @@ struct Parse {
/* Information used while coding trigger programs. */
Parse *pToplevel; /* Parse structure for main program (or NULL) */
Table *pTriggerTab; /* Table triggers are being coded for */
- u32 grep nQueryLoop; /* Est number of iterations of a query (10*log2(N)) */
+ u32 nQueryLoop; /* Est number of iterations of a query (10*log2(N)) */
u32 oldmask; /* Mask of old.* columns referenced */
u32 newmask; /* Mask of new.* columns referenced */
u8 eTriggerOp; /* TK_UPDATE, TK_INSERT or TK_DELETE */