Lines Matching refs:pLeft
15167 Expr *pLeft; /* Left subnode */ member
15258 #define EXPR_TOKENONLYSIZE offsetof(Expr,pLeft) /* Fewer features */
26558 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
26593 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
26599 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
26635 sqlite3TreeViewExpr(pView, pExpr->pLeft, 1);
26657 Expr *pX = pExpr->pLeft;
26680 sqlite3TreeViewExpr(pView, pExpr->pLeft, 1);
26709 sqlite3TreeViewSelect(pView, pExpr->pLeft->x.pSelect, 0);
26714 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
26724 sqlite3TreeViewExpr(pView, pExpr->pLeft, 1);
26728 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
46467 struct RowSetEntry *pLeft; /* Left subtree (smaller entries) */
46685 if( pIn->pLeft ){
46687 rowSetTreeToList(pIn->pLeft, ppFirst, &p);
46719 struct RowSetEntry *pLeft; /* Left subtree */
46728 pLeft = rowSetNDeepTree(ppList, iDepth-1);
46733 return pLeft;
46735 p->pLeft = pLeft;
46741 p->pLeft = p->pRight = 0;
46753 struct RowSetEntry *pLeft; /* Left subtree */
46758 p->pLeft = p->pRight = 0;
46760 pLeft = p;
46763 p->pLeft = pLeft;
46835 if( pTree->pLeft==0 ){
46836 pTree->pLeft = rowSetListToTree(p);
46840 rowSetTreeToList(pTree->pLeft, &pAux, &pTail);
46841 pTree->pLeft = 0;
46850 pTree->pLeft = rowSetListToTree(p);
46864 p = pTree->pLeft;
46869 p = p->pLeft;
71152 while( (op = pExpr->op)==TK_UPLUS || op==TK_SPAN ) pExpr = pExpr->pLeft;
71163 rc = valueFromExpr(db, pExpr->pLeft, enc, aff, ppVal, pCtx);
71176 && (pExpr->pLeft->op==TK_INTEGER || pExpr->pLeft->op==TK_FLOAT) ){
71177 pExpr = pExpr->pLeft;
71204 if( SQLITE_OK==sqlite3ValueFromExpr(db,pExpr->pLeft,enc,affinity,&pVal)
72867 displayP4Expr(p, pExpr->pLeft);
89436 if( pExpr->pLeft && walkExpr(pWalker, pExpr->pLeft) ) return WRC_Abort;
89947 assert( pExpr->pLeft==0 && pExpr->pRight==0 );
90029 sqlite3ExprDelete(db, pExpr->pLeft);
90030 pExpr->pLeft = 0;
90189 zTable = pExpr->pLeft->u.zToken;
90193 zDb = pExpr->pLeft->u.zToken;
90194 zTable = pRight->pLeft->u.zToken;
90351 assert( pExpr->pLeft!=0 );
90352 nLeft = sqlite3ExprVectorSize(pExpr->pLeft);
90569 while( pParent->pLeft->op==TK_COLLATE ) pParent = pParent->pLeft;
90570 assert( pParent->pLeft==pE );
90571 pParent->pLeft = pNew;
91166 assert( pExpr->pLeft->flags&EP_xIsSelect );
91168 pExpr->pLeft->x.pSelect->pEList->a[pExpr->iColumn].pExpr
91191 pNew->pLeft = pExpr;
91218 pExpr = pExpr->pLeft;
91241 p = p->pLeft;
91262 if( p->pLeft && (p->pLeft->flags & EP_Collate)!=0 ){
91263 p = p->pLeft;
91329 assert( pExpr->pLeft );
91330 aff = sqlite3ExprAffinity(pExpr->pLeft);
91383 Expr *pLeft,
91387 assert( pLeft );
91388 if( pLeft->flags & EP_Collate ){
91389 pColl = sqlite3ExprCollSeq(pParse, pLeft);
91393 pColl = sqlite3ExprCollSeq(pParse, pLeft);
91406 Expr *pLeft, /* The left operand */
91417 p4 = sqlite3BinaryCompareCollSeq(pParse, pLeft, pRight);
91418 p5 = binaryCompareP5(pLeft, pRight, jumpIfNull);
91532 pRet->pLeft = pVector;
91619 Expr *pLeft = pExpr->pLeft;
91621 int nLeft = sqlite3ExprVectorSize(pLeft);
91646 regLeft = exprCodeSubselect(pParse, pLeft);
91655 r1 = exprVectorRegister(pParse, pLeft, i, regLeft, &pL, ®Free1);
91756 heightOfExpr(p->pLeft, &nHeight);
91892 Expr *pLeft,
91897 sqlite3ExprDelete(db, pLeft);
91904 if( pLeft ){
91905 pRoot->pLeft = pLeft;
91906 pRoot->flags |= EP_Propagate & pLeft->flags;
91922 Expr *pLeft, /* Left operand */
91928 p = sqlite3ExprAnd(pParse->db, pLeft, pRight);
91936 sqlite3ExprAttachSubtrees(pParse->db, p, pLeft, pRight);
91995 SQLITE_PRIVATE Expr *sqlite3ExprAnd(sqlite3 *db, Expr *pLeft, Expr *pRight){
91996 if( pLeft==0 ){
91999 return pLeft;
92000 }else if( exprAlwaysFalse(pLeft) || exprAlwaysFalse(pRight) ){
92001 sqlite3ExprDelete(db, pLeft);
92006 sqlite3ExprAttachSubtrees(db, pNew, pLeft, pRight);
92120 assert( p->pLeft==0 );
92128 if( p->pLeft && p->op!=TK_SELECT_COLUMN ) sqlite3ExprDeleteNN(db, p->pLeft);
92202 if( p->pLeft || p->x.pList ){
92243 nByte += dupedExprSize(p->pLeft, flags) + dupedExprSize(p->pRight, flags);
92326 pNew->pLeft = p->pLeft ?
92327 exprDup(db, p->pLeft, EXPRDUP_REDUCE, &zAlloc) : 0;
92337 pNew->pLeft = p->pLeft;
92339 assert( p->pRight==0 || p->pRight==p->pLeft );
92341 pNew->pLeft = sqlite3ExprDup(db, p->pLeft, 0);
92421 assert( pOldExpr->pLeft==pOldExpr->pRight );
92422 pPriorSelectCol = pNewExpr->pLeft = pNewExpr->pRight;
92427 assert( pPriorSelectCol==pItem[-1].pExpr->pLeft );
92428 pNewExpr->pLeft = pPriorSelectCol;
93027 rc = sqlite3ExprIsInteger(p->pLeft, pValue);
93032 if( sqlite3ExprIsInteger(p->pLeft, &v) ){
93060 while( p->op==TK_UPLUS || p->op==TK_UMINUS ){ p = p->pLeft; }
93091 while( p->op==TK_UPLUS || p->op==TK_UMINUS ){ p = p->pLeft; }
93203 pLHS = pIn->pLeft;
93204 pIn->pLeft = 0;
93206 pIn->pLeft = pLHS;
93365 Expr *pLhs = sqlite3VectorFieldSubexpr(pX->pLeft, i);
93407 Expr *pLhs = sqlite3VectorFieldSubexpr(pX->pLeft, i);
93485 if( pX->pLeft->iColumn<0 && !ExprHasProperty(pX, EP_xIsSelect) ){
93499 n = sqlite3ExprVectorSize(pX->pLeft);
93516 Expr *pLeft = pExpr->pLeft;
93517 int nVal = sqlite3ExprVectorSize(pLeft);
93526 Expr *pA = sqlite3VectorFieldSubexpr(pLeft, i);
93645 Expr *pLeft = pExpr->pLeft; /* the LHS of the IN operator */
93649 nVal = sqlite3ExprVectorSize(pLeft);
93701 Expr *p = sqlite3VectorFieldSubexpr(pLeft, i);
93721 affinity = sqlite3ExprAffinity(pLeft);
93727 pKeyInfo->aColl[0] = sqlite3ExprCollSeq(pParse, pExpr->pLeft);
93849 int nVector = sqlite3ExprVectorSize(pIn->pLeft);
93856 sqlite3VectorErrorMsg(pParse, pIn->pLeft);
93904 Expr *pLeft; /* The LHS of the IN operator */
93912 pLeft = pExpr->pLeft;
93915 nVector = sqlite3ExprVectorSize(pExpr->pLeft);
93955 rLhsOrig = exprCodeVector(pParse, pLeft, &iDummy);
93976 CollSeq *pColl = sqlite3ExprCollSeq(pParse, pExpr->pLeft);
94024 Expr *p = sqlite3VectorFieldSubexpr(pExpr->pLeft, i);
94089 p = sqlite3VectorFieldSubexpr(pLeft, i);
94648 inReg = sqlite3ExprCodeTarget(pParse, pExpr->pLeft, target);
94671 Expr *pLeft = pExpr->pLeft;
94672 if( sqlite3ExprIsVector(pLeft) ){
94675 r1 = sqlite3ExprCodeTemp(pParse, pLeft, ®Free1);
94677 codeCompare(pParse, pLeft, pExpr->pRight, op,
94713 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, ®Free1);
94721 Expr *pLeft = pExpr->pLeft;
94722 assert( pLeft );
94723 if( pLeft->op==TK_INTEGER ){
94724 codeInteger(pParse, pLeft, 1, target);
94727 }else if( pLeft->op==TK_FLOAT ){
94729 codeReal(v, pLeft->u.zToken, 1, target);
94737 r2 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, ®Free2);
94747 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, ®Free1);
94758 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, ®Free1);
94946 if( pExpr->pLeft->iTable==0 ){
94947 pExpr->pLeft->iTable = sqlite3CodeSubselect(pParse, pExpr->pLeft, 0, 0);
94949 assert( pExpr->iTable==0 || pExpr->pLeft->op==TK_SELECT );
94951 && pExpr->iTable!=(n = sqlite3ExprVectorSize(pExpr->pLeft))
94956 return pExpr->pLeft->iTable + pExpr->iColumn;
94990 return sqlite3ExprCodeTarget(pParse, pExpr->pLeft, target);
95058 inReg = sqlite3ExprCodeTarget(pParse, pExpr->pLeft, target);
95104 if( (pX = pExpr->pLeft)!=0 ){
95111 opCompare.pLeft = &tempX;
95426 exprX = *pExpr->pLeft;
95428 exprAnd.pLeft = &compLeft;
95431 compLeft.pLeft = &exprX;
95434 compRight.pLeft = &exprX;
95491 sqlite3ExprIfFalse(pParse, pExpr->pLeft, d2,jumpIfNull^SQLITE_JUMPIFNULL);
95500 sqlite3ExprIfTrue(pParse, pExpr->pLeft, dest, jumpIfNull);
95508 sqlite3ExprIfFalse(pParse, pExpr->pLeft, dest, jumpIfNull);
95524 if( sqlite3ExprIsVector(pExpr->pLeft) ) goto default_expr;
95526 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, ®Free1);
95528 codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
95548 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, ®Free1);
95644 sqlite3ExprIfFalse(pParse, pExpr->pLeft, dest, jumpIfNull);
95653 sqlite3ExprIfTrue(pParse, pExpr->pLeft, d2, jumpIfNull^SQLITE_JUMPIFNULL);
95662 sqlite3ExprIfTrue(pParse, pExpr->pLeft, dest, jumpIfNull);
95678 if( sqlite3ExprIsVector(pExpr->pLeft) ) goto default_expr;
95680 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, ®Free1);
95682 codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
95700 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, ®Free1);
95794 if( pA->op==TK_COLLATE && sqlite3ExprCompare(pA->pLeft, pB, iTab)<2 ){
95797 if( pB->op==TK_COLLATE && sqlite3ExprCompare(pA, pB->pLeft, iTab)<2 ){
95812 if( sqlite3ExprCompare(pA->pLeft, pB->pLeft, iTab) ) return 2;
95889 && (sqlite3ExprImpliesExpr(pE1, pE2->pLeft, iTab)
95895 Expr *pX = sqlite3ExprSkipCollate(pE1->pLeft);
95896 testcase( pX!=pE1->pLeft );
95897 if( sqlite3ExprCompare(pX, pE2->pLeft, iTab)==0 ) return 1;
96945 if( pDflt && pDflt->pLeft->op==TK_NULL ){
99581 pExpr = pExpr->pLeft;
101138 x.pLeft = pSpan->pExpr;
101166 }else if( p->op==TK_COLLATE && p->pLeft->op==TK_STRING ){
101167 p->pLeft->op = TK_ID;
108191 Expr *pLeft; /* Value from parent table row */
108198 pLeft = exprTableRegister(pParse, pTab, regData, iCol);
108203 pEq = sqlite3PExpr(pParse, TK_EQ, pLeft, pRight);
108220 Expr *pLeft; /* Value from parent table row */
108223 pLeft = exprTableRegister(pParse, pTab, regData, -1);
108225 pNe = sqlite3PExpr(pParse, TK_NE, pLeft, pRight);
108233 pLeft = exprTableRegister(pParse, pTab, regData, iCol);
108235 pEq = sqlite3PExpr(pParse, TK_EQ, pLeft, pRight);
117108 setJoinExpr(p->pLeft, iTable);
117130 struct SrcList_item *pLeft; /* Left table being joined */
117134 pLeft = &pSrc->a[0];
117135 pRight = &pLeft[1];
117136 for(i=0; i<pSrc->nSrc-1; i++, pRight++, pLeft++){
117137 Table *pLeftTab = pLeft->pTab;
119890 assert( pExpr->pLeft==0 && pExpr->pRight==0 );
119898 ifNullRow.pLeft = pCopy;
119915 pExpr->pLeft = substExpr(pSubst, pExpr->pLeft);
120580 pWhere = pWhere->pLeft;
120869 Select *pLeft; /* Left-most SELECT statement */
120938 for(pLeft=pSel; pLeft->pPrior; pLeft=pLeft->pPrior);
120939 pEList = pLeft->pEList;
121130 assert( pE->op!=TK_DOT || (pE->pLeft!=0 && pE->pLeft->op==TK_ID) );
121168 assert( pE->pLeft!=0 );
121169 assert( !ExprHasProperty(pE->pLeft, EP_IntValue) );
121170 zTName = pE->pLeft->u.zToken;
121232 Expr *pLeft;
121233 pLeft = sqlite3Expr(db, TK_ID, zTabName);
121234 pExpr = sqlite3PExpr(pParse, TK_DOT, pLeft, pRight);
121236 pLeft = sqlite3Expr(db, TK_ID, zSchemaName);
121237 pExpr = sqlite3PExpr(pParse, TK_DOT, pLeft, pExpr);
127404 ExprList *pOrigLhs = pX->pLeft->x.pList;
127419 Expr *pLeft = pX->pLeft;
127439 pX->pLeft = pLhs->a[0].pExpr;
127441 pLeft->x.pList = pLhs;
127451 pLeft->x.pList = pOrigLhs;
127452 pX->pLeft = pLeft;
128205 pCompare->pLeft = pTerm->pExpr->pLeft;
128211 pCompare->pLeft = 0;
128827 pAndExpr->pLeft = pOrExpr;
128940 pAndExpr->pLeft = 0;
129059 sEAlt.pLeft = pE->pLeft;
129212 u16 expLeft = (pExpr->pLeft->flags & EP_Collate);
129220 }else if( sqlite3ExprCollSeq(pParse, pExpr->pLeft)!=0 ){
129224 pExpr->pLeft->flags |= EP_Collate;
129227 SWAP(Expr*,pExpr->pRight,pExpr->pLeft);
129287 Expr *pRight, *pLeft; /* Right and left size of LIKE operator */
129304 pLeft = pList->a[1].pExpr;
129330 if( pLeft->op!=TK_COLUMN
129331 || sqlite3ExprAffinity(pLeft)!=SQLITE_AFF_TEXT
129332 || IsVirtual(pLeft->pTab) /* Value might be numeric */
129496 assert( pOne->pExpr->pLeft!=0 && pOne->pExpr->pRight!=0 );
129497 assert( pTwo->pExpr->pLeft!=0 && pTwo->pExpr->pRight!=0 );
129498 if( sqlite3ExprCompare(pOne->pExpr->pLeft, pTwo->pExpr->pLeft, -1) ) return;
129803 affLeft = sqlite3ExprAffinity(pOrTerm->pExpr->pLeft);
129820 Expr *pLeft = 0; /* The LHS of the IN operator */
129830 pLeft = pOrTerm->pExpr->pLeft;
129832 assert( pLeft!=0 );
129833 pDup = sqlite3ExprDup(db, pLeft, 0);
129876 aff1 = sqlite3ExprAffinity(pExpr->pLeft);
129883 pColl = sqlite3BinaryCompareCollSeq(pParse, pExpr->pLeft, pExpr->pRight);
129885 pColl = sqlite3ExprCollSeq(pParse, pExpr->pLeft);
130028 prereqLeft = sqlite3WhereExprUsage(pMaskSet, pExpr->pLeft);
130060 Expr *pLeft = sqlite3ExprSkipCollate(pExpr->pLeft);
130066 assert( pLeft->op==TK_VECTOR );
130067 pLeft = pLeft->x.pList->a[pTerm->iField-1].pExpr;
130070 if( exprMightBeIndexed(pSrc, prereqLeft, aiCurCol, pLeft, op) ){
130142 sqlite3ExprDup(db, pExpr->pLeft, 0),
130182 Expr *pLeft; /* LHS of LIKE/GLOB operator */
130191 pLeft = pExpr->x.pList->a[1].pExpr;
130225 pNewExpr1 = sqlite3ExprDup(db, pLeft, 0);
130233 pNewExpr2 = sqlite3ExprDup(db, pLeft, 0);
130258 Expr *pRight, *pLeft;
130263 pLeft = pExpr->x.pList->a[1].pExpr;
130265 prereqColumn = sqlite3WhereExprUsage(pMaskSet, pLeft);
130274 pNewTerm->leftCursor = pLeft->iTable;
130275 pNewTerm->u.leftColumn = pLeft->iColumn;
130295 && (nLeft = sqlite3ExprVectorSize(pExpr->pLeft))>1
130297 && ( (pExpr->pLeft->flags & EP_xIsSelect)==0
130304 Expr *pLeft = sqlite3ExprForVectorField(pParse, pExpr->pLeft, i);
130307 pNew = sqlite3PExpr(pParse, pExpr->op, pLeft, pRight);
130326 && pExpr->pLeft->op==TK_VECTOR
130330 for(i=0; i<sqlite3ExprVectorSize(pExpr->pLeft); i++){
130348 && pExpr->pLeft->op==TK_COLUMN
130349 && pExpr->pLeft->iColumn>=0
130353 Expr *pLeft = pExpr->pLeft;
130358 sqlite3ExprDup(db, pLeft, 0),
130366 pNewTerm->leftCursor = pLeft->iTable;
130367 pNewTerm->u.leftColumn = pLeft->iColumn;
130414 sqlite3WhereSplit(pWC, pE2->pLeft, op);
130472 if( p->pLeft ) mask |= sqlite3WhereExprUsage(pMaskSet, p->pLeft);
130763 || sqlite3ExprCompareSkip(pTerm->pExpr->pLeft,
130793 assert(pX->pLeft);
130795 pX->pLeft, pX->pRight);
131296 pColl = sqlite3BinaryCompareCollSeq(pParse, pX->pLeft, pX->pRight);
132794 int nCmp = sqlite3ExprVectorSize(pTerm->pExpr->pLeft);
132804 Expr *pLhs = pTerm->pExpr->pLeft->x.pList->a[i].pExpr;
133239 if( !whereUsablePartialIndex(iTab,pWC,pWhere->pLeft) ) return 0;
135738 ExprSpan *pLeft, /* The left operand, and output */
135741 pLeft->pExpr = sqlite3PExpr(pParse, op, pLeft->pExpr, pRight->pExpr);
135742 pLeft->zEnd = pRight->zEnd;
138196 Select *pRight, *pLeft = yymsp[-4].minor.yy243;
138198 if( ALWAYS(pLeft) ) pLeft->selFlags &= ~SF_MultiValue;
138201 pRight->pPrior = pLeft;
138204 yymsp[-4].minor.yy243 = pLeft;
138238 Expr *pLeft = sqlite3ExprAlloc(pParse->db, TK_ID, &yymsp[-2].minor.yy0, 1);
138239 Expr *pDot = sqlite3PExpr(pParse, TK_DOT, pLeft, pRight);
146068 Fts3Expr *pLeft; /* Left operand */
150004 fts3EvalAllocateReaders(pCsr, pExpr->pLeft, pnToken, pnOr, pRc);
150046 char *pLeft;
150053 pLeft = p->doclist.aAll;
150061 pLeft = pList;
150067 pTab->bDescIdx, nDiff, pLeft, nLeft, &pRight, &nRight
150069 sqlite3_free(pLeft);
150653 fts3EvalStartReaders(pCsr, pExpr->pLeft, pRc);
150655 pExpr->bDeferred = (pExpr->pLeft->bDeferred && pExpr->pRight->bDeferred);
150715 assert( pExpr->pLeft && pExpr->pRight );
150717 pRoot = pExpr->pLeft;
150721 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pLeft, ppTC, ppOr, pRc);
151104 Fts3Expr *pLeft = pExpr->pLeft;
151106 assert( !pLeft->bDeferred || !pRight->bDeferred );
151108 if( pLeft->bDeferred ){
151117 fts3EvalNextRow(pCsr, pLeft, pRc);
151118 pExpr->iDocid = pLeft->iDocid;
151119 pExpr->bEof = pLeft->bEof;
151122 fts3EvalNextRow(pCsr, pLeft, pRc);
151124 while( !pLeft->bEof && !pRight->bEof && *pRc==SQLITE_OK ){
151125 sqlite3_int64 iDiff = DOCID_CMP(pLeft->iDocid, pRight->iDocid);
151128 fts3EvalNextRow(pCsr, pLeft, pRc);
151133 pExpr->iDocid = pLeft->iDocid;
151134 pExpr->bEof = (pLeft->bEof || pRight->bEof);
151144 if( pLeft->pPhrase && pLeft->pPhrase->doclist.aAll ){
151145 Fts3Doclist *pDl = &pLeft->pPhrase->doclist;
151146 while( *pRc==SQLITE_OK && pLeft->bEof==0 ){
151148 fts3EvalNextRow(pCsr, pLeft, pRc);
151157 Fts3Expr *pLeft = pExpr->pLeft;
151159 sqlite3_int64 iCmp = DOCID_CMP(pLeft->iDocid, pRight->iDocid);
151161 assert( pLeft->bStart || pLeft->iDocid==pRight->iDocid );
151162 assert( pRight->bStart || pLeft->iDocid==pRight->iDocid );
151164 if( pRight->bEof || (pLeft->bEof==0 && iCmp<0) ){
151165 fts3EvalNextRow(pCsr, pLeft, pRc);
151166 }else if( pLeft->bEof || iCmp>0 ){
151169 fts3EvalNextRow(pCsr, pLeft, pRc);
151173 pExpr->bEof = (pLeft->bEof && pRight->bEof);
151174 iCmp = DOCID_CMP(pLeft->iDocid, pRight->iDocid);
151175 if( pRight->bEof || (pLeft->bEof==0 && iCmp<0) ){
151176 pExpr->iDocid = pLeft->iDocid;
151185 Fts3Expr *pLeft = pExpr->pLeft;
151193 fts3EvalNextRow(pCsr, pLeft, pRc);
151194 if( pLeft->bEof==0 ){
151197 && DOCID_CMP(pLeft->iDocid, pRight->iDocid)>0
151202 pExpr->iDocid = pLeft->iDocid;
151203 pExpr->bEof = pLeft->bEof;
151265 for(p=pExpr; p->pLeft; p=p->pLeft){
151286 for(p=pExpr->pLeft; p && res; p=p->pLeft){
151289 assert( p->pParent && p->pParent->pLeft==p );
151326 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
151351 for(p=pExpr; p->pPhrase==0; p=p->pLeft){
151364 int bHit1 = fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc);
151372 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
151527 fts3EvalRestart(pCsr, pExpr->pLeft, pRc);
151567 fts3EvalUpdateCounts(pExpr->pLeft);
151609 for(p=pRoot; p; p=p->pLeft){
151806 for(p=pNear; p; p=p->pLeft){
153069 pNew->pLeft = pSplit;
153121 pNot->pLeft = pNotBranch;
153128 isPhrase = (eType==FTSQUERY_PHRASE || p->pLeft);
153176 assert( pPrev && pPrev->pLeft && pPrev->pRight==0 );
153207 while( pIter->pLeft ){
153208 pIter = pIter->pLeft;
153210 pIter->pLeft = pRet;
153238 rc = fts3ExprCheckDepth(p->pLeft, nMaxDepth-1);
153283 for(p=pRoot; p->eType==eType; p=p->pLeft){
153284 assert( p->pParent==0 || p->pParent->pLeft==p );
153285 assert( p->pLeft && p->pRight );
153293 assert( pParent==0 || pParent->pLeft==p );
153296 pParent->pLeft = 0;
153309 pFree->pLeft = apLeaf[iLvl];
153311 pFree->pLeft->pParent = pFree;
153330 for(p=pParent->pRight; p->eType==eType; p=p->pLeft);
153333 assert( pParent->pParent==0 || pParent->pParent->pLeft==pParent );
153336 pParent->pParent->pLeft = pParent->pRight;
153358 pFree->pLeft = apLeaf[i];
153359 pFree->pLeft->pParent = pFree;
153387 Fts3Expr *pLeft = pRoot->pLeft;
153390 pRoot->pLeft = 0;
153392 pLeft->pParent = 0;
153395 rc = fts3ExprBalance(&pLeft, nMaxDepth-1);
153402 sqlite3Fts3ExprFree(pLeft);
153404 assert( pLeft && pRight );
153405 pRoot->pLeft = pLeft;
153406 pLeft->pParent = pRoot;
153556 for(p=pDel; p && (p->pLeft||p->pRight); p=(p->pLeft ? p->pLeft : p->pRight)){
153557 assert( p->pParent==0 || p==p->pParent->pRight || p==p->pParent->pLeft );
153562 if( pParent && p==pParent->pLeft && pParent->pRight ){
153564 while( p && (p->pLeft || p->pRight) ){
153565 assert( p==p->pParent->pRight || p==p->pParent->pLeft );
153566 p = (p->pLeft ? p->pLeft : p->pRight);
153655 if( zBuf ) zBuf = exprToString(pExpr->pLeft, zBuf);
161995 assert( pExpr->pLeft && pExpr->pRight );
161996 rc = fts3ExprIterate2(pExpr->pLeft, piPhrase, x, pCtx);
162636 assert( (pExpr->pLeft==0)==(pExpr->pRight==0) );
162638 if( pExpr->pLeft ){
162639 fts3ExprLHitGather(pExpr->pLeft, p);
166513 RtreeNode *pLeft,
166595 RtreeNode *pTarget = (ii<iBestSplit)?pLeft:pRight;
166640 RtreeNode *pLeft = 0;
166665 pLeft = nodeNew(pRtree, pNode);
166670 pLeft = pNode;
166671 pRight = nodeNew(pRtree, pLeft->pParent);
166672 nodeReference(pLeft);
166675 if( !pLeft || !pRight ){
166680 memset(pLeft->zData, 0, pRtree->iNodeSize);
166683 rc = splitNodeStartree(pRtree, aCell, nCell, pLeft, pRight,
166695 || (0==pLeft->iNode && SQLITE_OK!=(rc = nodeWrite(pRtree, pLeft)))
166701 leftbbox.iRowid = pLeft->iNode;
166704 rc = rtreeInsertCell(pRtree, pLeft->pParent, &leftbbox, iHeight+1);
166709 RtreeNode *pParent = pLeft->pParent;
166711 rc = nodeParentIndex(pRtree, pLeft, &iCell);
166735 for(i=0; i<NCELL(pLeft); i++){
166736 i64 iRowid = nodeGetRowid(pRtree, pLeft, i);
166737 rc = updateMapping(pRtree, iRowid, pLeft, iHeight);
166743 rc = updateMapping(pRtree, pCell->iRowid, pLeft, iHeight);
166751 rc = nodeRelease(pRtree, pLeft);
166752 pLeft = 0;
166757 nodeRelease(pRtree, pLeft);
179524 void *pLeft, /* Lhs input changeset */
179535 rc = sqlite3changegroup_add(pGrp, nLeft, pLeft);
183308 Fts5ExprNode *pLeft,
183315 Fts5ExprNode *pLeft,
187671 Fts5ExprPhrase *pLeft = pNear->apPhrase[0];
187688 if( pLeft->aTerm[0].pSynonym ){
187689 iLast = fts5ExprSynonymRowid(&pLeft->aTerm[0], bDesc, 0);
187691 iLast = pLeft->aTerm[0].pIter->iRowid;
188820 Fts5ExprNode *pLeft, /* Left hand child expression */
188831 || (eType==FTS5_STRING && !pLeft && !pRight)
188834 if( eType!=FTS5_STRING && pLeft==0 ) return pRight;
188835 if( eType!=FTS5_STRING && pRight==0 ) return pLeft;
188841 if( pLeft->eType==eType ) nChild += pLeft->nChild-1;
188877 fts5ExprAddChildren(pRet, pLeft);
188885 sqlite3Fts5ParseNodeFree(pLeft);
188894 Fts5ExprNode *pLeft, /* Left hand child expression */
188901 sqlite3Fts5ParseNodeFree(pLeft);
188905 assert( pLeft->eType==FTS5_STRING
188906 || pLeft->eType==FTS5_TERM
188907 || pLeft->eType==FTS5_EOF
188908 || pLeft->eType==FTS5_AND
188915 if( pLeft->eType==FTS5_AND ){
188916 pPrev = pLeft->apChild[pLeft->nChild-1];
188918 pPrev = pLeft;
188928 pRet = pLeft;
188934 if( pPrev==pLeft ){
188937 pLeft->apChild[pLeft->nChild-1] = pRight;
188938 pRet = pLeft;
188949 pRet = sqlite3Fts5ParseNode(pParse, FTS5_AND, pLeft, pRight, 0);
189962 Fts5HashEntry *pLeft,
189965 Fts5HashEntry *p1 = pLeft;
190706 Fts5Buffer *pLeft, /* Left hand side of comparison */
190709 int nCmp = MIN(pLeft->n, nRight);
190710 int res = memcmp(pLeft->p, pRight, nCmp);
190711 return (res==0 ? (pLeft->n - nRight) : res);
190724 static int fts5BufferCompare(Fts5Buffer *pLeft, Fts5Buffer *pRight){
190725 int nCmp = MIN(pLeft->n, pRight->n);
190726 int res = memcmp(pLeft->p, pRight->p, nCmp);
190727 return (res==0 ? (pLeft->n - pRight->n) : res);