Lines Matching refs:pConstraint
2776 const struct sqlite3_index_constraint *pConstraint; in fsdirBestIndex() local
2779 pConstraint = pIdxInfo->aConstraint; in fsdirBestIndex()
2780 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in fsdirBestIndex()
2781 if( pConstraint->usable==0 ) continue; in fsdirBestIndex()
2782 if( pConstraint->op!=SQLITE_INDEX_CONSTRAINT_EQ ) continue; in fsdirBestIndex()
2783 if( pConstraint->iColumn==4 ) idx4 = i; in fsdirBestIndex()
2784 if( pConstraint->iColumn==5 ) idx5 = i; in fsdirBestIndex()
3307 const struct sqlite3_index_constraint *pConstraint; in completionBestIndex() local
3310 pConstraint = pIdxInfo->aConstraint; in completionBestIndex()
3311 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in completionBestIndex()
3312 if( pConstraint->usable==0 ) continue; in completionBestIndex()
3313 if( pConstraint->op!=SQLITE_INDEX_CONSTRAINT_EQ ) continue; in completionBestIndex()
3314 switch( pConstraint->iColumn ){ in completionBestIndex()
6962 static void idxConstraintFree(IdxConstraint *pConstraint){ in idxConstraintFree() argument
6966 for(p=pConstraint; p; p=pNext){ in idxConstraintFree()