Lines Matching refs:WhereTerm

10249     struct WhereTerm *pTerm;       /* WHERE clause term for OR-search */
97912 ** WhereTerm.pWC->a[WhereTerm.idx] == WhereTerm
97919 ** then WhereTerm.leftCursor and WhereTerm.u.leftColumn record the
97920 ** cursor number and column number for X. WhereTerm.eOperator records
97925 ** A WhereTerm might also be two or more subterms connected by OR:
97930 ** and the WhereTerm.u.pOrInfo field points to auxiliary information that
97934 ** categories, then eOperator==0. The WhereTerm.pExpr field is still set
97936 ** but no other fields in the WhereTerm object are meaningful.
97954 typedef struct WhereTerm WhereTerm;
97955 struct WhereTerm {
97973 ** Allowed values of WhereTerm.wtFlags
97979 #define TERM_ORINFO 0x10 /* Need to free the WhereTerm.u.pOrInfo object */
97980 #define TERM_ANDINFO 0x20 /* Need to free the WhereTerm.u.pAndInfo obj */
97999 WhereTerm *a; /* Each a[] describes a term of the WHERE cluase */
98001 WhereTerm aStatic[1]; /* Initial static space for a[] */
98003 WhereTerm aStatic[8]; /* Initial static space for a[] */
98008 ** A WhereTerm with eOperator==WO_OR has its u.pOrInfo pointer set to
98017 ** A WhereTerm with eOperator==WO_AND has its u.pAndInfo pointer set to
98026 ** between VDBE cursor numbers and bits of the bitmasks in WhereTerm.
98159 WhereTerm *a;
98177 ** Add a single new WhereTerm entry to the WhereClause object pWC.
98178 ** The new WhereTerm object is constructed from Expr p and with wtFlags.
98179 ** The index in pWC->a[] of the new WhereTerm is returned on success.
98180 ** 0 is returned if the new WhereTerm could not be added due to a memory
98188 ** This is true even if this routine fails to allocate a new WhereTerm.
98196 WhereTerm *pTerm;
98200 WhereTerm *pOld = pWC->a;
98427 static WhereTerm *findTerm(
98435 WhereTerm *pTerm;
98639 ** WhereTerm.wtFlags |= TERM_ORINFO
98640 ** WhereTerm.u.pOrInfo = a dynamically allocated WhereOrTerm object
98669 ** WhereTerm.eOperator = WO_OR
98670 ** WhereTerm.u.pOrInfo->indexable |= the cursor number for table T
98711 WhereTerm *pTerm = &pWC->a[idxTerm]; /* The term to be analyzed */
98716 WhereTerm *pOrTerm; /* A Sub-term within the pOrWc */
98752 WhereTerm *pAndTerm;
98780 WhereTerm *pOther = &pOrWc->a[pOrTerm->iParent];
98939 ** The input to this routine is an WhereTerm structure with only the
98941 ** subexpression and populate all the other fields of the WhereTerm
98961 WhereTerm *pTerm; /* The term to be analyzed */
99014 WhereTerm *pNew;
99168 WhereTerm *pNewTerm;
99213 WhereTerm *pNewTerm;
99494 WhereTerm * const pWCEnd = &pWC->a[pWC->nTerm]; /* End of pWC->a[] */
99495 WhereTerm *pTerm; /* A single term of the WHERE clause */
99510 WhereTerm * const pOrWCEnd = &pOrWC->a[pOrWC->nTerm];
99511 WhereTerm *pOrTerm;
99573 WhereTerm *pTerm, /* WHERE clause term to check */
99606 WhereTerm *pTerm; /* A single term of the WHERE clause */
99607 WhereTerm *pWCEnd; /* End of pWC->a[] */
99667 WhereTerm *pTerm; /* A single term of the WHERE clause */
99668 WhereTerm *pWCEnd; /* End of pWC->a[] */
99824 WhereTerm *pTerm;
99989 WhereTerm *pTerm;
100275 ** place of the corresponding WhereTerm.
100307 WhereTerm *pLower, /* Lower bound on the range. ex: "x>123" Might be NULL */
100308 WhereTerm *pUpper, /* Upper bound on the range. ex: "x<455" Might be NULL */
100695 WhereTerm *pTerm; /* A single term of the WHERE clause */
100697 WhereTerm *pFirstTerm = 0; /* First term matching the index */
100730 WhereTerm *pTop = findTerm(pWC, iCur, j, notReady, WO_LT|WO_LE, pIdx);
100731 WhereTerm *pBtm = findTerm(pWC, iCur, j, notReady, WO_GT|WO_GE, pIdx);
101059 static void disableTerm(WhereLevel *pLevel, WhereTerm *pTerm){
101066 WhereTerm *pOther = &pTerm->pWC->a[pTerm->iParent];
101127 WhereTerm *pTerm, /* The term of the WHERE clause to be coded */
101230 WhereTerm *pTerm; /* A single constraint term */
101463 WhereTerm *pTerm; /* A WHERE clause term */
101575 WhereTerm *pStart, *pEnd;
101697 WhereTerm *pRangeStart = 0; /* Inequality constraint at range start */
101698 WhereTerm *pRangeEnd = 0; /* Inequality constraint at range end */
101759 SWAP(WhereTerm *, pRangeEnd, pRangeStart);
101987 WhereTerm *pOrTerm = &pOrWc->a[ii];