Lines Matching refs:pConstraint
829 const struct sqlite3_index_constraint *pConstraint; in closureBestIndex() local
833 pConstraint = pIdxInfo->aConstraint; in closureBestIndex()
834 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in closureBestIndex()
835 if( pConstraint->usable==0 ) continue; in closureBestIndex()
837 && pConstraint->iColumn==CLOSURE_COL_ROOT in closureBestIndex()
838 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_EQ in closureBestIndex()
846 && pConstraint->iColumn==CLOSURE_COL_DEPTH in closureBestIndex()
847 && (pConstraint->op==SQLITE_INDEX_CONSTRAINT_LT in closureBestIndex()
848 || pConstraint->op==SQLITE_INDEX_CONSTRAINT_LE in closureBestIndex()
849 || pConstraint->op==SQLITE_INDEX_CONSTRAINT_EQ) in closureBestIndex()
853 if( pConstraint->op==SQLITE_INDEX_CONSTRAINT_LT ) iPlan |= 0x000002; in closureBestIndex()
857 && pConstraint->iColumn==CLOSURE_COL_TABLENAME in closureBestIndex()
858 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_EQ in closureBestIndex()
866 && pConstraint->iColumn==CLOSURE_COL_IDCOLUMN in closureBestIndex()
867 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_EQ in closureBestIndex()
874 && pConstraint->iColumn==CLOSURE_COL_PARENTCOLUMN in closureBestIndex()
875 && pConstraint->op==SQLITE_INDEX_CONSTRAINT_EQ in closureBestIndex()
898 for(i=0; i<pIdxInfo->nConstraint; i++, pConstraint++){ in closureBestIndex()