Lines Matching refs:pIdxInfo
763 static char *echoSelectList(echo_vtab *pTab, sqlite3_index_info *pIdxInfo){ in echoSelectList() argument
770 if( pIdxInfo->colUsed & ((sqlite3_uint64)1 << (i>=63 ? 63 : i)) ){ in echoSelectList()
803 static int echoBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){ in echoBestIndex() argument
854 zCol = echoSelectList(pVtab, pIdxInfo); in echoBestIndex()
859 for(ii=0; ii<pIdxInfo->nConstraint; ii++){ in echoBestIndex()
864 pConstraint = &pIdxInfo->aConstraint[ii]; in echoBestIndex()
865 pUsage = &pIdxInfo->aConstraintUsage[ii]; in echoBestIndex()
920 if( pIdxInfo->nOrderBy==1 && ( in echoBestIndex()
921 pIdxInfo->aOrderBy->iColumn<0 || in echoBestIndex()
922 pVtab->aIndex[pIdxInfo->aOrderBy->iColumn]) ){ in echoBestIndex()
923 int iCol = pIdxInfo->aOrderBy->iColumn; in echoBestIndex()
925 char *zDir = pIdxInfo->aOrderBy->desc?"DESC":"ASC"; in echoBestIndex()
928 pIdxInfo->orderByConsumed = 1; in echoBestIndex()
937 pIdxInfo->idxNum = hashString(zQuery); in echoBestIndex()
938 pIdxInfo->idxStr = zQuery; in echoBestIndex()
939 pIdxInfo->needToFreeIdxStr = 1; in echoBestIndex()
941 pIdxInfo->estimatedCost = cost; in echoBestIndex()
946 pIdxInfo->estimatedCost = (double)ii; in echoBestIndex()
950 pIdxInfo->estimatedCost = (double)nRow; in echoBestIndex()