• Home
  • Raw
  • Download

Lines Matching refs:pLeft

16253   Expr *pLeft;           /* Left subnode */  member
16346 #define EXPR_TOKENONLYSIZE offsetof(Expr,pLeft) /* Fewer features */
27190 sqlite3TreeViewExpr(pView, p->pLimit->pLeft, p->pLimit->pRight!=0);
27296 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
27331 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
27337 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
27373 sqlite3TreeViewExpr(pView, pExpr->pLeft, 1);
27395 Expr *pX = pExpr->pLeft;
27418 sqlite3TreeViewExpr(pView, pExpr->pLeft, 1);
27447 sqlite3TreeViewSelect(pView, pExpr->pLeft->x.pSelect, 0);
27452 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
27462 sqlite3TreeViewExpr(pView, pExpr->pLeft, 1);
27466 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
47402 struct RowSetEntry *pLeft; /* Left subtree (smaller entries) */
47620 if( pIn->pLeft ){
47622 rowSetTreeToList(pIn->pLeft, ppFirst, &p);
47654 struct RowSetEntry *pLeft; /* Left subtree */
47663 pLeft = rowSetNDeepTree(ppList, iDepth-1);
47668 return pLeft;
47670 p->pLeft = pLeft;
47676 p->pLeft = p->pRight = 0;
47688 struct RowSetEntry *pLeft; /* Left subtree */
47693 p->pLeft = p->pRight = 0;
47695 pLeft = p;
47698 p->pLeft = pLeft;
47770 if( pTree->pLeft==0 ){
47771 pTree->pLeft = rowSetListToTree(p);
47775 rowSetTreeToList(pTree->pLeft, &pAux, &pTail);
47776 pTree->pLeft = 0;
47785 pTree->pLeft = rowSetListToTree(p);
47799 p = pTree->pLeft;
47804 p = p->pLeft;
72513 while( (op = pExpr->op)==TK_UPLUS || op==TK_SPAN ) pExpr = pExpr->pLeft;
72528 rc = valueFromExpr(db, pExpr->pLeft, enc, aff, ppVal, pCtx);
72541 && (pExpr->pLeft->op==TK_INTEGER || pExpr->pLeft->op==TK_FLOAT) ){
72542 pExpr = pExpr->pLeft;
72569 if( SQLITE_OK==valueFromExpr(db,pExpr->pLeft,enc,affinity,&pVal,pCtx)
74261 displayP4Expr(p, pExpr->pLeft);
91038 if( pExpr->pLeft && walkExpr(pWalker, pExpr->pLeft) ) return WRC_Abort;
91547 assert( pExpr->pLeft==0 && pExpr->pRight==0 );
91629 sqlite3ExprDelete(db, pExpr->pLeft);
91630 pExpr->pLeft = 0;
91788 zTable = pExpr->pLeft->u.zToken;
91792 zDb = pExpr->pLeft->u.zToken;
91793 zTable = pRight->pLeft->u.zToken;
91950 assert( pExpr->pLeft!=0 );
91951 nLeft = sqlite3ExprVectorSize(pExpr->pLeft);
92166 while( pParent->pLeft->op==TK_COLLATE ) pParent = pParent->pLeft;
92167 assert( pParent->pLeft==pE );
92168 pParent->pLeft = pNew;
92752 assert( pExpr->pLeft->flags&EP_xIsSelect );
92754 pExpr->pLeft->x.pSelect->pEList->a[pExpr->iColumn].pExpr
92777 pNew->pLeft = pExpr;
92804 pExpr = pExpr->pLeft;
92832 p = p->pLeft;
92853 if( p->pLeft && (p->pLeft->flags & EP_Collate)!=0 ){
92854 p = p->pLeft;
92946 assert( pExpr->pLeft );
92947 aff = sqlite3ExprAffinity(pExpr->pLeft);
93000 Expr *pLeft,
93004 assert( pLeft );
93005 if( pLeft->flags & EP_Collate ){
93006 pColl = sqlite3ExprCollSeq(pParse, pLeft);
93010 pColl = sqlite3ExprCollSeq(pParse, pLeft);
93023 Expr *pLeft, /* The left operand */
93034 p4 = sqlite3BinaryCompareCollSeq(pParse, pLeft, pRight);
93035 p5 = binaryCompareP5(pLeft, pRight, jumpIfNull);
93149 pRet->pLeft = pVector;
93236 Expr *pLeft = pExpr->pLeft;
93238 int nLeft = sqlite3ExprVectorSize(pLeft);
93263 regLeft = exprCodeSubselect(pParse, pLeft);
93272 r1 = exprVectorRegister(pParse, pLeft, i, regLeft, &pL, &regFree1);
93372 heightOfExpr(p->pLeft, &nHeight);
93508 Expr *pLeft,
93513 sqlite3ExprDelete(db, pLeft);
93520 if( pLeft ){
93521 pRoot->pLeft = pLeft;
93522 pRoot->flags |= EP_Propagate & pLeft->flags;
93538 Expr *pLeft, /* Left operand */
93544 p = sqlite3ExprAnd(pParse->db, pLeft, pRight);
93552 sqlite3ExprAttachSubtrees(pParse->db, p, pLeft, pRight);
93611 SQLITE_PRIVATE Expr *sqlite3ExprAnd(sqlite3 *db, Expr *pLeft, Expr *pRight){
93612 if( pLeft==0 ){
93615 return pLeft;
93616 }else if( exprAlwaysFalse(pLeft) || exprAlwaysFalse(pRight) ){
93617 sqlite3ExprDelete(db, pLeft);
93622 sqlite3ExprAttachSubtrees(db, pNew, pLeft, pRight);
93737 assert( p->pLeft==0 );
93745 if( p->pLeft && p->op!=TK_SELECT_COLUMN ) sqlite3ExprDeleteNN(db, p->pLeft);
93820 if( p->pLeft || p->x.pList ){
93861 nByte += dupedExprSize(p->pLeft, flags) + dupedExprSize(p->pRight, flags);
93944 pNew->pLeft = p->pLeft ?
93945 exprDup(db, p->pLeft, EXPRDUP_REDUCE, &zAlloc) : 0;
93955 pNew->pLeft = p->pLeft;
93957 assert( p->pRight==0 || p->pRight==p->pLeft );
93959 pNew->pLeft = sqlite3ExprDup(db, p->pLeft, 0);
94038 assert( pOldExpr->pLeft==pOldExpr->pRight );
94039 pPriorSelectCol = pNewExpr->pLeft = pNewExpr->pRight;
94044 assert( pPriorSelectCol==pItem[-1].pExpr->pLeft );
94045 pNewExpr->pLeft = pPriorSelectCol;
94660 rc = sqlite3ExprIsInteger(p->pLeft, pValue);
94665 if( sqlite3ExprIsInteger(p->pLeft, &v) ){
94693 while( p->op==TK_UPLUS || p->op==TK_UMINUS ){ p = p->pLeft; }
94724 while( p->op==TK_UPLUS || p->op==TK_UMINUS ){ p = p->pLeft; }
94835 pLHS = pIn->pLeft;
94836 pIn->pLeft = 0;
94838 pIn->pLeft = pLHS;
94996 Expr *pLhs = sqlite3VectorFieldSubexpr(pX->pLeft, i);
95038 Expr *pLhs = sqlite3VectorFieldSubexpr(pX->pLeft, i);
95116 if( pX->pLeft->iColumn<0 && !ExprHasProperty(pX, EP_xIsSelect) ){
95130 n = sqlite3ExprVectorSize(pX->pLeft);
95147 Expr *pLeft = pExpr->pLeft;
95148 int nVal = sqlite3ExprVectorSize(pLeft);
95157 Expr *pA = sqlite3VectorFieldSubexpr(pLeft, i);
95276 Expr *pLeft = pExpr->pLeft; /* the LHS of the IN operator */
95280 nVal = sqlite3ExprVectorSize(pLeft);
95332 Expr *p = sqlite3VectorFieldSubexpr(pLeft, i);
95352 affinity = sqlite3ExprAffinity(pLeft);
95358 pKeyInfo->aColl[0] = sqlite3ExprCollSeq(pParse, pExpr->pLeft);
95448 sqlite3ExprDelete(pParse->db, pSel->pLimit->pLeft);
95449 pSel->pLimit->pLeft = pLimit;
95484 int nVector = sqlite3ExprVectorSize(pIn->pLeft);
95491 sqlite3VectorErrorMsg(pParse, pIn->pLeft);
95539 Expr *pLeft; /* The LHS of the IN operator */
95547 pLeft = pExpr->pLeft;
95550 nVector = sqlite3ExprVectorSize(pExpr->pLeft);
95590 rLhsOrig = exprCodeVector(pParse, pLeft, &iDummy);
95611 CollSeq *pColl = sqlite3ExprCollSeq(pParse, pExpr->pLeft);
95659 Expr *p = sqlite3VectorFieldSubexpr(pExpr->pLeft, i);
95724 p = sqlite3VectorFieldSubexpr(pLeft, i);
96284 inReg = sqlite3ExprCodeTarget(pParse, pExpr->pLeft, target);
96307 Expr *pLeft = pExpr->pLeft;
96308 if( sqlite3ExprIsVector(pLeft) ){
96311 r1 = sqlite3ExprCodeTemp(pParse, pLeft, &regFree1);
96313 codeCompare(pParse, pLeft, pExpr->pRight, op,
96349 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
96357 Expr *pLeft = pExpr->pLeft;
96358 assert( pLeft );
96359 if( pLeft->op==TK_INTEGER ){
96360 codeInteger(pParse, pLeft, 1, target);
96363 }else if( pLeft->op==TK_FLOAT ){
96365 codeReal(v, pLeft->u.zToken, 1, target);
96373 r2 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree2);
96383 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
96394 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
96594 if( pExpr->pLeft->iTable==0 ){
96595 pExpr->pLeft->iTable = sqlite3CodeSubselect(pParse, pExpr->pLeft, 0, 0);
96597 assert( pExpr->iTable==0 || pExpr->pLeft->op==TK_SELECT );
96599 && pExpr->iTable!=(n = sqlite3ExprVectorSize(pExpr->pLeft))
96604 return pExpr->pLeft->iTable + pExpr->iColumn;
96638 return sqlite3ExprCodeTarget(pParse, pExpr->pLeft, target);
96706 inReg = sqlite3ExprCodeTarget(pParse, pExpr->pLeft, target);
96752 if( (pX = pExpr->pLeft)!=0 ){
96759 opCompare.pLeft = &tempX;
97078 exprX = *pExpr->pLeft;
97080 exprAnd.pLeft = &compLeft;
97083 compLeft.pLeft = &exprX;
97086 compRight.pLeft = &exprX;
97143 sqlite3ExprIfFalse(pParse, pExpr->pLeft, d2,jumpIfNull^SQLITE_JUMPIFNULL);
97152 sqlite3ExprIfTrue(pParse, pExpr->pLeft, dest, jumpIfNull);
97160 sqlite3ExprIfFalse(pParse, pExpr->pLeft, dest, jumpIfNull);
97176 if( sqlite3ExprIsVector(pExpr->pLeft) ) goto default_expr;
97178 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
97180 codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
97200 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
97296 sqlite3ExprIfFalse(pParse, pExpr->pLeft, dest, jumpIfNull);
97305 sqlite3ExprIfTrue(pParse, pExpr->pLeft, d2, jumpIfNull^SQLITE_JUMPIFNULL);
97314 sqlite3ExprIfTrue(pParse, pExpr->pLeft, dest, jumpIfNull);
97330 if( sqlite3ExprIsVector(pExpr->pLeft) ) goto default_expr;
97332 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
97334 codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
97352 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
97491 if( pA->op==TK_COLLATE && sqlite3ExprCompare(pParse, pA->pLeft,pB,iTab)<2 ){
97494 if( pB->op==TK_COLLATE && sqlite3ExprCompare(pParse, pA,pB->pLeft,iTab)<2 ){
97509 if( sqlite3ExprCompare(pParse, pA->pLeft, pB->pLeft, iTab) ) return 2;
97591 && (sqlite3ExprImpliesExpr(pParse, pE1, pE2->pLeft, iTab)
97597 Expr *pX = sqlite3ExprSkipCollate(pE1->pLeft);
97598 testcase( pX!=pE1->pLeft );
97599 if( sqlite3ExprCompare(pParse, pX, pE2->pLeft, iTab)==0 ) return 1;
98652 if( pDflt && pDflt->pLeft->op==TK_NULL ){
101302 pExpr = pExpr->pLeft;
102866 x.pLeft = pExpr;
102894 }else if( p->op==TK_COLLATE && p->pLeft->op==TK_STRING ){
102895 p->pLeft->op = TK_ID;
109988 Expr *pLeft; /* Value from parent table row */
109995 pLeft = exprTableRegister(pParse, pTab, regData, iCol);
110000 pEq = sqlite3PExpr(pParse, TK_EQ, pLeft, pRight);
110017 Expr *pLeft; /* Value from parent table row */
110020 pLeft = exprTableRegister(pParse, pTab, regData, -1);
110022 pNe = sqlite3PExpr(pParse, TK_NE, pLeft, pRight);
110030 pLeft = exprTableRegister(pParse, pTab, regData, iCol);
110032 pEq = sqlite3PExpr(pParse, TK_EQ, pLeft, pRight);
119067 setJoinExpr(p->pLeft, iTable);
119089 struct SrcList_item *pLeft; /* Left table being joined */
119093 pLeft = &pSrc->a[0];
119094 pRight = &pLeft[1];
119095 for(i=0; i<pSrc->nSrc-1; i++, pRight++, pLeft++){
119099 if( NEVER(pLeft->pTab==0 || pRightTab==0) ) continue;
120597 assert( pLimit->pLeft!=0 );
120601 if( sqlite3ExprIsInteger(pLimit->pLeft, &n) ){
120611 sqlite3ExprCode(pParse, pLimit->pLeft, iLimit);
121045 && sqlite3ExprIsInteger(pPrior->pLimit->pLeft, &nLimit)
121870 assert( pExpr->pLeft==0 && pExpr->pRight==0 );
121878 ifNullRow.pLeft = pCopy;
121898 pExpr->pLeft = substExpr(pSubst, pExpr->pLeft);
122560 pWhere = pWhere->pLeft;
122854 Select *pLeft; /* Left-most SELECT statement */
122924 for(pLeft=pSel; pLeft->pPrior; pLeft=pLeft->pPrior);
122925 pEList = pLeft->pEList;
123122 assert( pE->op!=TK_DOT || (pE->pLeft!=0 && pE->pLeft->op==TK_ID) );
123162 assert( pE->pLeft!=0 );
123163 assert( !ExprHasProperty(pE->pLeft, EP_IntValue) );
123164 zTName = pE->pLeft->u.zToken;
123226 Expr *pLeft;
123227 pLeft = sqlite3Expr(db, TK_ID, zTabName);
123228 pExpr = sqlite3PExpr(pParse, TK_DOT, pLeft, pRight);
123230 pLeft = sqlite3Expr(db, TK_ID, zSchemaName);
123231 pExpr = sqlite3PExpr(pParse, TK_DOT, pLeft, pExpr);
129588 ExprList *pOrigLhs = pNew->pLeft->x.pList; /* Original unmodified LHS */
129607 pNew->pLeft->x.pList = pLhs;
129615 sqlite3ExprDelete(db, pNew->pLeft);
129616 pNew->pLeft = p;
130472 pCompare->pLeft = pTerm->pExpr->pLeft;
130478 pCompare->pLeft = 0;
131095 pAndExpr->pLeft = pOrExpr;
131208 pAndExpr->pLeft = 0;
131346 sEAlt.pLeft = pE->pLeft;
131499 u16 expLeft = (pExpr->pLeft->flags & EP_Collate);
131507 }else if( sqlite3ExprCollSeq(pParse, pExpr->pLeft)!=0 ){
131511 pExpr->pLeft->flags |= EP_Collate;
131514 SWAP(Expr*,pExpr->pRight,pExpr->pLeft);
131574 Expr *pRight, *pLeft; /* Right and left size of LIKE operator */
131591 pLeft = pList->a[1].pExpr;
131617 if( pLeft->op!=TK_COLUMN
131618 || sqlite3ExprAffinity(pLeft)!=SQLITE_AFF_TEXT
131619 || IsVirtual(pLeft->pTab) /* Value might be numeric */
131754 Expr *pLeft = pExpr->pLeft;
131756 if( pLeft->op==TK_COLUMN && IsVirtual(pLeft->pTab) ){
131761 SWAP(Expr*, pLeft, pRight);
131763 *ppLeft = pLeft;
131845 assert( pOne->pExpr->pLeft!=0 && pOne->pExpr->pRight!=0 );
131846 assert( pTwo->pExpr->pLeft!=0 && pTwo->pExpr->pRight!=0 );
131847 if( sqlite3ExprCompare(0,pOne->pExpr->pLeft, pTwo->pExpr->pLeft, -1) ) return;
132152 affLeft = sqlite3ExprAffinity(pOrTerm->pExpr->pLeft);
132169 Expr *pLeft = 0; /* The LHS of the IN operator */
132179 pLeft = pOrTerm->pExpr->pLeft;
132181 assert( pLeft!=0 );
132182 pDup = sqlite3ExprDup(db, pLeft, 0);
132224 aff1 = sqlite3ExprAffinity(pExpr->pLeft);
132231 pColl = sqlite3BinaryCompareCollSeq(pParse, pExpr->pLeft, pExpr->pRight);
132233 return sqlite3ExprCollSeqMatch(pParse, pExpr->pLeft, pExpr->pRight);
132372 prereqLeft = sqlite3WhereExprUsage(pMaskSet, pExpr->pLeft);
132406 Expr *pLeft = sqlite3ExprSkipCollate(pExpr->pLeft);
132412 assert( pLeft->op==TK_VECTOR );
132413 pLeft = pLeft->x.pList->a[pTerm->iField-1].pExpr;
132416 if( exprMightBeIndexed(pSrc, prereqLeft, aiCurCol, pLeft, op) ){
132488 sqlite3ExprDup(db, pExpr->pLeft, 0),
132528 Expr *pLeft; /* LHS of LIKE/GLOB operator */
132537 pLeft = pExpr->x.pList->a[1].pExpr;
132571 pNewExpr1 = sqlite3ExprDup(db, pLeft, 0);
132579 pNewExpr2 = sqlite3ExprDup(db, pLeft, 0);
132606 Expr *pRight = 0, *pLeft = 0;
132607 int res = isAuxiliaryVtabOperator(pExpr, &eOp2, &pLeft, &pRight);
132614 prereqColumn = sqlite3WhereExprUsage(pMaskSet, pLeft);
132626 pNewTerm->leftCursor = pLeft->iTable;
132627 pNewTerm->u.leftColumn = pLeft->iColumn;
132635 SWAP(Expr*, pLeft, pRight);
132649 && (nLeft = sqlite3ExprVectorSize(pExpr->pLeft))>1
132651 && ( (pExpr->pLeft->flags & EP_xIsSelect)==0
132658 Expr *pLeft = sqlite3ExprForVectorField(pParse, pExpr->pLeft, i);
132661 pNew = sqlite3PExpr(pParse, pExpr->op, pLeft, pRight);
132680 && pExpr->pLeft->op==TK_VECTOR
132684 for(i=0; i<sqlite3ExprVectorSize(pExpr->pLeft); i++){
132702 && pExpr->pLeft->op==TK_COLUMN
132703 && pExpr->pLeft->iColumn>=0
132707 Expr *pLeft = pExpr->pLeft;
132712 sqlite3ExprDup(db, pLeft, 0),
132720 pNewTerm->leftCursor = pLeft->iTable;
132721 pNewTerm->u.leftColumn = pLeft->iColumn;
132768 sqlite3WhereSplit(pWC, pE2->pLeft, op);
132825 if( p->pLeft ) mask |= sqlite3WhereExprUsage(pMaskSet, p->pLeft);
133135 || sqlite3ExprCompareSkip(pTerm->pExpr->pLeft,
133165 assert(pX->pLeft);
133167 pX->pLeft, pX->pRight);
133677 pColl = sqlite3BinaryCompareCollSeq(pParse, pX->pLeft, pX->pRight);
135192 int nCmp = sqlite3ExprVectorSize(pTerm->pExpr->pLeft);
135202 Expr *pLhs = pTerm->pExpr->pLeft->x.pList->a[i].pExpr;
135638 if( !whereUsablePartialIndex(iTab,pWC,pWhere->pLeft) ) return 0;
136082 if( pX->pLeft ){
136083 pC = sqlite3BinaryCompareCollSeq(pHidden->pParse, pX->pLeft, pX->pRight);
140927 Select *pRight, *pLeft = yymsp[-4].minor.yy387;
140929 if( ALWAYS(pLeft) ) pLeft->selFlags &= ~SF_MultiValue;
140932 pRight->pPrior = pLeft;
140935 yymsp[-4].minor.yy387 = pLeft;
140969 Expr *pLeft = sqlite3ExprAlloc(pParse->db, TK_ID, &yymsp[-2].minor.yy0, 1);
140970 Expr *pDot = sqlite3PExpr(pParse, TK_DOT, pLeft, pRight);
148896 Fts3Expr *pLeft; /* Left operand */
152845 fts3EvalAllocateReaders(pCsr, pExpr->pLeft, pnToken, pnOr, pRc);
152887 char *pLeft;
152894 pLeft = p->doclist.aAll;
152902 pLeft = pList;
152908 pTab->bDescIdx, nDiff, pLeft, nLeft, &pRight, &nRight
152910 sqlite3_free(pLeft);
153494 fts3EvalStartReaders(pCsr, pExpr->pLeft, pRc);
153496 pExpr->bDeferred = (pExpr->pLeft->bDeferred && pExpr->pRight->bDeferred);
153556 assert( pExpr->pLeft && pExpr->pRight );
153558 pRoot = pExpr->pLeft;
153562 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pLeft, ppTC, ppOr, pRc);
153945 Fts3Expr *pLeft = pExpr->pLeft;
153947 assert( !pLeft->bDeferred || !pRight->bDeferred );
153949 if( pLeft->bDeferred ){
153958 fts3EvalNextRow(pCsr, pLeft, pRc);
153959 pExpr->iDocid = pLeft->iDocid;
153960 pExpr->bEof = pLeft->bEof;
153963 fts3EvalNextRow(pCsr, pLeft, pRc);
153965 while( !pLeft->bEof && !pRight->bEof && *pRc==SQLITE_OK ){
153966 sqlite3_int64 iDiff = DOCID_CMP(pLeft->iDocid, pRight->iDocid);
153969 fts3EvalNextRow(pCsr, pLeft, pRc);
153974 pExpr->iDocid = pLeft->iDocid;
153975 pExpr->bEof = (pLeft->bEof || pRight->bEof);
153985 if( pLeft->pPhrase && pLeft->pPhrase->doclist.aAll ){
153986 Fts3Doclist *pDl = &pLeft->pPhrase->doclist;
153987 while( *pRc==SQLITE_OK && pLeft->bEof==0 ){
153989 fts3EvalNextRow(pCsr, pLeft, pRc);
153998 Fts3Expr *pLeft = pExpr->pLeft;
154000 sqlite3_int64 iCmp = DOCID_CMP(pLeft->iDocid, pRight->iDocid);
154002 assert( pLeft->bStart || pLeft->iDocid==pRight->iDocid );
154003 assert( pRight->bStart || pLeft->iDocid==pRight->iDocid );
154005 if( pRight->bEof || (pLeft->bEof==0 && iCmp<0) ){
154006 fts3EvalNextRow(pCsr, pLeft, pRc);
154007 }else if( pLeft->bEof || iCmp>0 ){
154010 fts3EvalNextRow(pCsr, pLeft, pRc);
154014 pExpr->bEof = (pLeft->bEof && pRight->bEof);
154015 iCmp = DOCID_CMP(pLeft->iDocid, pRight->iDocid);
154016 if( pRight->bEof || (pLeft->bEof==0 && iCmp<0) ){
154017 pExpr->iDocid = pLeft->iDocid;
154026 Fts3Expr *pLeft = pExpr->pLeft;
154034 fts3EvalNextRow(pCsr, pLeft, pRc);
154035 if( pLeft->bEof==0 ){
154038 && DOCID_CMP(pLeft->iDocid, pRight->iDocid)>0
154043 pExpr->iDocid = pLeft->iDocid;
154044 pExpr->bEof = pLeft->bEof;
154106 for(p=pExpr; p->pLeft; p=p->pLeft){
154127 for(p=pExpr->pLeft; p && res; p=p->pLeft){
154130 assert( p->pParent && p->pParent->pLeft==p );
154167 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
154192 for(p=pExpr; p->pPhrase==0; p=p->pLeft){
154205 int bHit1 = fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc);
154213 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
154368 fts3EvalRestart(pCsr, pExpr->pLeft, pRc);
154408 fts3EvalUpdateCounts(pExpr->pLeft);
154450 for(p=pRoot; p; p=p->pLeft){
154647 for(p=pNear; p; p=p->pLeft){
155910 pNew->pLeft = pSplit;
155962 pNot->pLeft = pNotBranch;
155969 isPhrase = (eType==FTSQUERY_PHRASE || p->pLeft);
156017 assert( pPrev && pPrev->pLeft && pPrev->pRight==0 );
156048 while( pIter->pLeft ){
156049 pIter = pIter->pLeft;
156051 pIter->pLeft = pRet;
156079 rc = fts3ExprCheckDepth(p->pLeft, nMaxDepth-1);
156124 for(p=pRoot; p->eType==eType; p=p->pLeft){
156125 assert( p->pParent==0 || p->pParent->pLeft==p );
156126 assert( p->pLeft && p->pRight );
156134 assert( pParent==0 || pParent->pLeft==p );
156137 pParent->pLeft = 0;
156150 pFree->pLeft = apLeaf[iLvl];
156152 pFree->pLeft->pParent = pFree;
156171 for(p=pParent->pRight; p->eType==eType; p=p->pLeft);
156174 assert( pParent->pParent==0 || pParent->pParent->pLeft==pParent );
156177 pParent->pParent->pLeft = pParent->pRight;
156199 pFree->pLeft = apLeaf[i];
156200 pFree->pLeft->pParent = pFree;
156228 Fts3Expr *pLeft = pRoot->pLeft;
156231 pRoot->pLeft = 0;
156233 pLeft->pParent = 0;
156236 rc = fts3ExprBalance(&pLeft, nMaxDepth-1);
156243 sqlite3Fts3ExprFree(pLeft);
156245 assert( pLeft && pRight );
156246 pRoot->pLeft = pLeft;
156247 pLeft->pParent = pRoot;
156397 for(p=pDel; p && (p->pLeft||p->pRight); p=(p->pLeft ? p->pLeft : p->pRight)){
156398 assert( p->pParent==0 || p==p->pParent->pRight || p==p->pParent->pLeft );
156403 if( pParent && p==pParent->pLeft && pParent->pRight ){
156405 while( p && (p->pLeft || p->pRight) ){
156406 assert( p==p->pParent->pRight || p==p->pParent->pLeft );
156407 p = (p->pLeft ? p->pLeft : p->pRight);
156496 if( zBuf ) zBuf = exprToString(pExpr->pLeft, zBuf);
164837 assert( pExpr->pLeft && pExpr->pRight );
164838 rc = fts3ExprIterate2(pExpr->pLeft, piPhrase, x, pCtx);
165478 assert( (pExpr->pLeft==0)==(pExpr->pRight==0) );
165480 if( pExpr->pLeft ){
165481 fts3ExprLHitGather(pExpr->pLeft, p);
169327 RtreeNode *pLeft,
169409 RtreeNode *pTarget = (ii<iBestSplit)?pLeft:pRight;
169454 RtreeNode *pLeft = 0;
169479 pLeft = nodeNew(pRtree, pNode);
169484 pLeft = pNode;
169485 pRight = nodeNew(pRtree, pLeft->pParent);
169486 nodeReference(pLeft);
169489 if( !pLeft || !pRight ){
169494 memset(pLeft->zData, 0, pRtree->iNodeSize);
169497 rc = splitNodeStartree(pRtree, aCell, nCell, pLeft, pRight,
169509 || (0==pLeft->iNode && SQLITE_OK!=(rc = nodeWrite(pRtree, pLeft)))
169515 leftbbox.iRowid = pLeft->iNode;
169518 rc = rtreeInsertCell(pRtree, pLeft->pParent, &leftbbox, iHeight+1);
169523 RtreeNode *pParent = pLeft->pParent;
169525 rc = nodeParentIndex(pRtree, pLeft, &iCell);
169549 for(i=0; i<NCELL(pLeft); i++){
169550 i64 iRowid = nodeGetRowid(pRtree, pLeft, i);
169551 rc = updateMapping(pRtree, iRowid, pLeft, iHeight);
169557 rc = updateMapping(pRtree, pCell->iRowid, pLeft, iHeight);
169565 rc = nodeRelease(pRtree, pLeft);
169566 pLeft = 0;
169571 nodeRelease(pRtree, pLeft);
183532 void *pLeft, /* Lhs input changeset */
183543 rc = sqlite3changegroup_add(pGrp, nLeft, pLeft);
187316 Fts5ExprNode *pLeft,
187323 Fts5ExprNode *pLeft,
191799 Fts5ExprPhrase *pLeft = pNear->apPhrase[0];
191817 if( pLeft->aTerm[0].pSynonym ){
191818 iLast = fts5ExprSynonymRowid(&pLeft->aTerm[0], bDesc, 0);
191820 iLast = pLeft->aTerm[0].pIter->iRowid;
192964 Fts5ExprNode *pLeft, /* Left hand child expression */
192975 || (eType==FTS5_STRING && !pLeft && !pRight)
192978 if( eType!=FTS5_STRING && pLeft==0 ) return pRight;
192979 if( eType!=FTS5_STRING && pRight==0 ) return pLeft;
192985 if( pLeft->eType==eType ) nChild += pLeft->nChild-1;
193024 fts5ExprAddChildren(pRet, pLeft);
193032 sqlite3Fts5ParseNodeFree(pLeft);
193041 Fts5ExprNode *pLeft, /* Left hand child expression */
193048 sqlite3Fts5ParseNodeFree(pLeft);
193052 assert( pLeft->eType==FTS5_STRING
193053 || pLeft->eType==FTS5_TERM
193054 || pLeft->eType==FTS5_EOF
193055 || pLeft->eType==FTS5_AND
193062 if( pLeft->eType==FTS5_AND ){
193063 pPrev = pLeft->apChild[pLeft->nChild-1];
193065 pPrev = pLeft;
193075 pRet = pLeft;
193081 if( pPrev==pLeft ){
193084 pLeft->apChild[pLeft->nChild-1] = pRight;
193085 pRet = pLeft;
193096 pRet = sqlite3Fts5ParseNode(pParse, FTS5_AND, pLeft, pRight, 0);
194110 Fts5HashEntry *pLeft,
194113 Fts5HashEntry *p1 = pLeft;
194856 Fts5Buffer *pLeft, /* Left hand side of comparison */
194859 int nCmp = MIN(pLeft->n, nRight);
194860 int res = memcmp(pLeft->p, pRight, nCmp);
194861 return (res==0 ? (pLeft->n - nRight) : res);
194874 static int fts5BufferCompare(Fts5Buffer *pLeft, Fts5Buffer *pRight){
194875 int nCmp = MIN(pLeft->n, pRight->n);
194876 int res = memcmp(pLeft->p, pRight->p, nCmp);
194877 return (res==0 ? (pLeft->n - pRight->n) : res);