Lines Matching refs:pIdxInfo

393   sqlite3_index_info *pIdxInfo  in testBestIndexObjConstraints()  argument
398 for(ii=0; ii<pIdxInfo->nConstraint; ii++){ in testBestIndexObjConstraints()
399 struct sqlite3_index_constraint const *pCons = &pIdxInfo->aConstraint[ii]; in testBestIndexObjConstraints()
457 sqlite3_index_info *pIdxInfo in testBestIndexObjOrderby() argument
462 for(ii=0; ii<pIdxInfo->nOrderBy; ii++){ in testBestIndexObjOrderby()
463 struct sqlite3_index_orderby const *pOrder = &pIdxInfo->aOrderBy[ii]; in testBestIndexObjOrderby()
514 sqlite3_index_info *pIdxInfo = (sqlite3_index_info*)clientData; in testBestIndexObj() local
539 testBestIndexObjConstraints(interp, pIdxInfo); in testBestIndexObj()
543 testBestIndexObjOrderby(interp, pIdxInfo); in testBestIndexObj()
547 Tcl_SetObjResult(interp, Tcl_NewWideIntObj(pIdxInfo->colUsed)); in testBestIndexObj()
551 int bDistinct = sqlite3_vtab_distinct(pIdxInfo); in testBestIndexObj()
565 Tcl_NewIntObj(sqlite3_vtab_in(pIdxInfo, iCons, bHandle)) in testBestIndexObj()
578 rc = sqlite3_vtab_rhs_value(pIdxInfo, iCons, &pVal); in testBestIndexObj()
596 static int tclBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){ in tclBestIndex() argument
610 Tcl_CreateObjCommand(interp, zHdl, testBestIndexObj, pIdxInfo, 0); in tclBestIndex()
648 rc = Tcl_GetDoubleFromObj(interp, p, &pIdxInfo->estimatedCost); in tclBestIndex()
651 rc = Tcl_GetIntFromObj(interp, p, &pIdxInfo->orderByConsumed); in tclBestIndex()
654 rc = Tcl_GetIntFromObj(interp, p, &pIdxInfo->idxNum); in tclBestIndex()
657 sqlite3_free(pIdxInfo->idxStr); in tclBestIndex()
658 pIdxInfo->idxStr = sqlite3_mprintf("%s", Tcl_GetString(p)); in tclBestIndex()
659 pIdxInfo->needToFreeIdxStr = 1; in tclBestIndex()
664 pIdxInfo->estimatedRows = (tRowcnt)x; in tclBestIndex()
672 if( iCons<0 || iCons>=pIdxInfo->nConstraint ){ in tclBestIndex()
677 pIdxInfo->aConstraintUsage[iCons].argvIndex = iArgv++; in tclBestIndex()
678 pIdxInfo->aConstraintUsage[iCons].omit = bOmit; in tclBestIndex()