Home | History | Annotate | Download | only in orig

Lines Matching refs:pIdxInfo

2771   sqlite3_index_info *pIdxInfo
2779 pConstraint = pIdxInfo->aConstraint;
2780 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){
2788 pIdxInfo->idxNum = 0;
2789 pIdxInfo->estimatedCost = (double)(((sqlite3_int64)1) << 50);
2791 pIdxInfo->aConstraintUsage[idx4].omit = 1;
2792 pIdxInfo->aConstraintUsage[idx4].argvIndex = 1;
2794 pIdxInfo->aConstraintUsage[idx5].omit = 1;
2795 pIdxInfo->aConstraintUsage[idx5].argvIndex = 2;
2796 pIdxInfo->idxNum = 2;
2797 pIdxInfo->estimatedCost = 10.0;
2799 pIdxInfo->idxNum = 1;
2800 pIdxInfo->estimatedCost = 100.0;
3300 sqlite3_index_info *pIdxInfo
3310 pConstraint = pIdxInfo->aConstraint;
3311 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){
3326 pIdxInfo->aConstraintUsage[prefixIdx].argvIndex = ++nArg;
3327 pIdxInfo->aConstraintUsage[prefixIdx].omit = 1;
3330 pIdxInfo->aConstraintUsage[wholelineIdx].argvIndex = ++nArg;
3331 pIdxInfo->aConstraintUsage[wholelineIdx].omit = 1;
3333 pIdxInfo->idxNum = idxNum;
3334 pIdxInfo->estimatedCost = (double)5000 - 1000*nArg;
3335 pIdxInfo->estimatedRows = 500 - 100*nArg;
4979 sqlite3_index_info *pIdxInfo
4983 for(i=0; i<pIdxInfo->nConstraint; i++){
4984 const struct sqlite3_index_constraint *pCons = &pIdxInfo->aConstraint[i];
4991 if( i<pIdxInfo->nConstraint ){
4992 pIdxInfo->aConstraintUsage[i].argvIndex = 1;
4993 pIdxInfo->aConstraintUsage[i].omit = 1;
4994 pIdxInfo->estimatedCost = 1000.0;
4995 pIdxInfo->idxNum = 1;
4997 pIdxInfo->estimatedCost = (double)(((sqlite3_int64)1) << 50);
4998 pIdxInfo->idxNum = 0;
6364 static int expertBestIndex(sqlite3_vtab *pVtab, sqlite3_index_info *pIdxInfo){
6384 for(i=0; i<pIdxInfo->nConstraint; i++){
6385 struct sqlite3_index_constraint *pCons = &pIdxInfo->aConstraint[i];
6392 const char *zColl = sqlite3_vtab_collation(pIdxInfo, i);
6406 pIdxInfo->aConstraintUsage[i].argvIndex = n;
6411 for(i=pIdxInfo->nOrderBy-1; i>=0; i--){
6412 int iCol = pIdxInfo->aOrderBy[i].iColumn;
6417 pNew->bDesc = pIdxInfo->aOrderBy[i].desc;
6427 pIdxInfo->estimatedCost = 1000000.0 / (n+1);