diff options
author | drh <> | 2021-03-24 17:28:11 +0000 |
---|---|---|
committer | drh <> | 2021-03-24 17:28:11 +0000 |
commit | 6db1c9da67d9921bfe7f1186b55dc59a996ab9d2 (patch) | |
tree | fb3f60351d1262da990ef9b42d0de4debc40fe56 /src/sqliteInt.h | |
parent | 29821b46f5740ccabf7147aaea1db999a1289ace (diff) | |
parent | b19a5812417f2b276689929a76c087bc54e6cf97 (diff) | |
download | sqlite-6db1c9da67d9921bfe7f1186b55dc59a996ab9d2.tar.gz sqlite-6db1c9da67d9921bfe7f1186b55dc59a996ab9d2.zip |
Improvements to distinct aggregates such that they can sometimes avoid
using an ephermeral table to test for duplicates if the column that is
distinct is part of an index.
FossilOrigin-Name: ef4ac0ddd297bbd38351410c5a387e1628561b3f1bec9e4c2c9d76fbe29f955a
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 8dd8b1a7c..0822a6c3c 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -2603,6 +2603,7 @@ struct AggInfo { FuncDef *pFunc; /* The aggregate function implementation */ int iMem; /* Memory location that acts as accumulator */ int iDistinct; /* Ephemeral table used to enforce DISTINCT */ + int iDistAddr; /* Address of OP_OpenEphemeral */ } *aFunc; int nFunc; /* Number of entries in aFunc[] */ u32 selId; /* Select to which this AggInfo belongs */ |