1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

For the OR-optimization, avoid generating OP_OpenRead opcodes that reopen

exactly the same index.

FossilOrigin-Name: b67a6e33f23ce5f5d9a545fa9d6700a7ed636901
This commit is contained in:
drh
2014-07-22 00:40:45 +00:00
parent 215c0c82fa
commit 53ad7e48ab
4 changed files with 26 additions and 10 deletions

View File

@@ -2136,6 +2136,7 @@ struct SrcList {
#define WHERE_DISTINCTBY 0x0200 /* pOrderby is really a DISTINCT clause */
#define WHERE_WANT_DISTINCT 0x0400 /* All output needs to be distinct */
#define WHERE_SORTBYGROUP 0x0800 /* Support sqlite3WhereIsSorted() */
#define WHERE_OR_INDEX_OPEN 0x1000 /* OP_OpenRead for the OR index exists */
/* Allowed return values from sqlite3WhereIsDistinct()
*/