diff options
author | dan <Dan Kennedy> | 2021-04-03 19:23:59 +0000 |
---|---|---|
committer | dan <Dan Kennedy> | 2021-04-03 19:23:59 +0000 |
commit | f330d53ff32f33ebe77d40dd70ad7712f317e8a8 (patch) | |
tree | 23beb04e46e7c3c7a815c9a776843db418485cee /src/sqliteInt.h | |
parent | 9af69ff547d76f1f8c7c4513fdb6c0ca1a32f9fc (diff) | |
download | sqlite-f330d53ff32f33ebe77d40dd70ad7712f317e8a8.tar.gz sqlite-f330d53ff32f33ebe77d40dd70ad7712f317e8a8.zip |
Fix a crash in handling queries of the form "SELECT aggregate(DISTINCT tbl.col) FROM ... LEFT JOIN tbl ...". Fixes a problem introduced by [ef4ac0ddd297bbd3].
FossilOrigin-Name: 0dcf808ddf23da834da724d88b1715ed06565f1f1290713ff42a3fcf6ffb802e
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index fcc50e157..783950fb0 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -3019,7 +3019,7 @@ struct SrcList { #define WHERE_DISTINCTBY 0x0080 /* pOrderby is really a DISTINCT clause */ #define WHERE_WANT_DISTINCT 0x0100 /* All output needs to be distinct */ #define WHERE_SORTBYGROUP 0x0200 /* Support sqlite3WhereIsSorted() */ - /* 0x0400 not currently used */ +#define WHERE_AGG_DISTINCT 0x0400 /* Query is "SELECT agg(DISTINCT ...)" */ #define WHERE_ORDERBY_LIMIT 0x0800 /* ORDERBY+LIMIT on the inner loop */ /* 0x1000 not currently used */ /* 0x2000 not currently used */ |