1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-16 23:02:26 +03:00

The optimization of check-in [b67a6e33f2] does not work (it generates

incorrect VDBE code) if an OR term is AND-ed with a constant expression.
So back that optimization out and add a test case to make sure it does not
get added back in.

FossilOrigin-Name: eed754fe93644f4df082eac0c0a7ffc5c78ccd10
This commit is contained in:
drh
2014-07-22 19:14:42 +00:00
parent f5d87f77e2
commit a45fdc7b1e
5 changed files with 20 additions and 27 deletions

View File

@@ -2136,7 +2136,6 @@ 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()
*/