Lines Matching defs:WhereTerm

110511 typedef struct WhereTerm WhereTerm;
110604 WhereTerm **aLTerm; /* WhereTerms used */
110606 WhereTerm *aLTermSpace[4]; /* Initial aLTerm[] space */
110670 ** WhereTerm.pWC->a[WhereTerm.idx] == WhereTerm
110677 ** then WhereTerm.leftCursor and WhereTerm.u.leftColumn record the
110678 ** cursor number and column number for X. WhereTerm.eOperator records
110683 ** A WhereTerm might also be two or more subterms connected by OR:
110688 ** and the WhereTerm.u.pOrInfo field points to auxiliary information that
110692 ** categories, then eOperator==0. The WhereTerm.pExpr field is still set
110694 ** but no other fields in the WhereTerm object are meaningful.
110712 struct WhereTerm {
110731 ** Allowed values of WhereTerm.wtFlags
110737 #define TERM_ORINFO 0x10 /* Need to free the WhereTerm.u.pOrInfo object */
110738 #define TERM_ANDINFO 0x20 /* Need to free the WhereTerm.u.pAndInfo obj */
110780 WhereTerm *a; /* Each a[] describes a term of the WHERE cluase */
110782 WhereTerm aStatic[1]; /* Initial static space for a[] */
110784 WhereTerm aStatic[8]; /* Initial static space for a[] */
110789 ** A WhereTerm with eOperator==WO_OR has its u.pOrInfo pointer set to
110798 ** A WhereTerm with eOperator==WO_AND has its u.pAndInfo pointer set to
110807 ** between VDBE cursor numbers and bits of the bitmasks in WhereTerm.
110888 ** Bitmasks for the operators on WhereTerm objects. These are all
111083 WhereTerm *a;
111101 ** Add a single new WhereTerm entry to the WhereClause object pWC.
111102 ** The new WhereTerm object is constructed from Expr p and with wtFlags.
111103 ** The index in pWC->a[] of the new WhereTerm is returned on success.
111104 ** 0 is returned if the new WhereTerm could not be added due to a memory
111112 ** This is true even if this routine fails to allocate a new WhereTerm.
111120 WhereTerm *pTerm;
111124 WhereTerm *pOld = pWC->a;
111351 ** Advance to the next WhereTerm that matches according to the criteria
111355 static WhereTerm *whereScanNext(WhereScan *pScan){
111360 WhereTerm *pTerm; /* The term being tested */
111445 static WhereTerm *whereScanInit(
111500 static WhereTerm *findTerm(
111508 WhereTerm *pResult = 0;
111509 WhereTerm *p;
111690 ** WhereTerm.wtFlags |= TERM_ORINFO
111691 ** WhereTerm.u.pOrInfo = a dynamically allocated WhereOrTerm object
111720 ** WhereTerm.eOperator = WO_OR
111721 ** WhereTerm.u.pOrInfo->indexable |= the cursor number for table T
111763 WhereTerm *pTerm = &pWC->a[idxTerm]; /* The term to be analyzed */
111767 WhereTerm *pOrTerm; /* A Sub-term within the pOrWc */
111802 WhereTerm *pAndTerm;
111831 WhereTerm *pOther = &pOrWc->a[pOrTerm->iParent];
111987 ** The input to this routine is an WhereTerm structure with only the
111989 ** subexpression and populate all the other fields of the WhereTerm
112010 WhereTerm *pTerm; /* The term to be analyzed */
112065 WhereTerm *pNew;
112231 WhereTerm *pNewTerm;
112277 WhereTerm *pNewTerm;
112466 WhereTerm *pTerm, /* WHERE clause term to check */
112496 WhereTerm *pTerm; /* A single term of the WHERE clause */
112497 WhereTerm *pWCEnd; /* End of pWC->a[] */
112657 WhereTerm *pTerm;
112903 static LogEst whereRangeAdjust(WhereTerm *pTerm, LogEst nNew){
112953 WhereTerm *pLower, /* Lower bound on the range. ex: "x>123" Might be NULL */
112954 WhereTerm *pUpper, /* Upper bound on the range. ex: "x<455" Might be NULL */
113037 ** place of the corresponding WhereTerm.
113067 WhereTerm *pLower, /* Lower bound on the range. ex: "x>123" Might be NULL */
113068 WhereTerm *pUpper, /* Upper bound on the range. ex: "x<455" Might be NULL */
113337 static void disableTerm(WhereLevel *pLevel, WhereTerm *pTerm){
113345 WhereTerm *pOther = &pTerm->pWC->a[pTerm->iParent];
113406 WhereTerm *pTerm, /* The term of the WHERE clause to be coded */
113533 WhereTerm *pTerm; /* A single constraint term */
113808 WhereTerm *pTerm; /* A WHERE clause term */
113941 WhereTerm *pStart, *pEnd;
114073 WhereTerm *pRangeStart = 0; /* Inequality constraint at range start */
114074 WhereTerm *pRangeEnd = 0; /* Inequality constraint at range end */
114148 SWAP(WhereTerm *, pRangeEnd, pRangeStart);
114439 WhereTerm *pOrTerm = &pOrWc->a[ii];
114620 WhereTerm *pAlt;
114670 ** Generate "Explanation" text for a WhereTerm.
114672 static void whereExplainTerm(Vdbe *v, WhereTerm *pTerm){
114731 WhereTerm *pTerm = p->aLTerm[i];
114788 WhereTerm **paNew;
115125 WhereTerm *pTerm, *pX;
115180 WhereTerm *pTerm; /* A WhereTerm under consideration */
115192 WhereTerm *pTop = 0, *pBtm = 0; /* Top and bottom range constraints */
115471 WhereTerm *pTerm;
115586 WhereTerm *pTerm;
115587 WhereTerm *pWCEnd = pWC->a + pWC->nTerm;
115718 WhereTerm *pTerm;
115877 WhereTerm *pTerm, *pWCEnd;
115898 WhereTerm * const pOrWCEnd = &pOrWC->a[pOrWC->nTerm];
115899 WhereTerm *pOrTerm;
116059 WhereTerm *pTerm; /* A single term of the WHERE clause */
116713 WhereTerm *pTerm;
117122 WhereTerm *pTerm, *pEnd;