mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-18 10:21:03 +03:00
Fix a bug in the whereRangeSkipScanEst() procedure (added by
check-in [d09ca6d5efad3e4cfa]) where it fails to consider the possibility of a ROWID column when computing the affinity of a table column. FossilOrigin-Name: 6aea2258dd7d3967900cefe4cd0af48a7ee7e169
This commit is contained in:
@@ -2047,7 +2047,8 @@ static int whereRangeSkipScanEst(
|
||||
int nLower = -1;
|
||||
int nUpper = p->nSample+1;
|
||||
int rc = SQLITE_OK;
|
||||
u8 aff = p->pTable->aCol[ p->aiColumn[nEq] ].affinity;
|
||||
int iCol = p->aiColumn[nEq];
|
||||
u8 aff = iCol>=0 ? p->pTable->aCol[iCol].affinity : SQLITE_AFF_INTEGER;
|
||||
CollSeq *pColl;
|
||||
|
||||
sqlite3_value *p1 = 0; /* Value extracted from pLower */
|
||||
|
||||
Reference in New Issue
Block a user