1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-06 15:49:35 +03:00

A proposed fix for the DESC ORDER BY bug of ticket [4dd95f6943fbd18].

Seems to work, but lots more testing is needed prior to moving to trunk.

FossilOrigin-Name: 614a038ad2fe111687d2bc1c0aa716d7eb8fdd7c
This commit is contained in:
drh
2013-03-12 18:34:50 +00:00
parent 881bd79293
commit 0fe456bb29
4 changed files with 27 additions and 14 deletions

View File

@@ -1931,6 +1931,7 @@ struct WherePlan {
u32 wsFlags; /* WHERE_* flags that describe the strategy */
u16 nEq; /* Number of == constraints */
u16 nOBSat; /* Number of ORDER BY terms satisfied */
u16 iOBSat; /* First ORDER BY term satisfied */
double nRow; /* Estimated number of rows (for EQP) */
union {
Index *pIdx; /* Index when WHERE_INDEXED is true */