Lines Matching refs:pLeft

17985   Expr *pLeft;           /* Left subnode */  member
18108 #define EXPR_TOKENONLYSIZE offsetof(Expr,pLeft) /* Fewer features */
29657 sqlite3TreeViewExpr(pView, p->pLimit->pLeft, p->pLimit->pRight!=0);
29848 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
29902 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
29951 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
29964 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
30024 sqlite3TreeViewExpr(pView, pExpr->pLeft, 1);
30046 Expr *pX = pExpr->pLeft;
30069 sqlite3TreeViewExpr(pView, pExpr->pLeft, 1);
30100 sqlite3TreeViewSelect(pView, pExpr->pLeft->x.pSelect, 0);
30105 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
30115 sqlite3TreeViewExpr(pView, pExpr->pLeft, 1);
30119 sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
51033 struct RowSetEntry *pLeft; /* Left subtree (smaller entries) */
51255 if( pIn->pLeft ){
51257 rowSetTreeToList(pIn->pLeft, ppFirst, &p);
51289 struct RowSetEntry *pLeft; /* Left subtree */
51298 pLeft = rowSetNDeepTree(ppList, iDepth-1);
51303 return pLeft;
51305 p->pLeft = pLeft;
51311 p->pLeft = p->pRight = 0;
51323 struct RowSetEntry *pLeft; /* Left subtree */
51328 p->pLeft = p->pRight = 0;
51330 pLeft = p;
51333 p->pLeft = pLeft;
51405 if( pTree->pLeft==0 ){
51406 pTree->pLeft = rowSetListToTree(p);
51410 rowSetTreeToList(pTree->pLeft, &pAux, &pTail);
51411 pTree->pLeft = 0;
51420 pTree->pLeft = rowSetListToTree(p);
51434 p = pTree->pLeft;
51439 p = p->pLeft;
77122 while( (op = pExpr->op)==TK_UPLUS || op==TK_SPAN ) pExpr = pExpr->pLeft;
77137 rc = valueFromExpr(db, pExpr->pLeft, enc, aff, ppVal, pCtx);
77150 && (pExpr->pLeft->op==TK_INTEGER || pExpr->pLeft->op==TK_FLOAT) ){
77151 pExpr = pExpr->pLeft;
77183 if( SQLITE_OK==valueFromExpr(db,pExpr->pLeft,enc,affinity,&pVal,pCtx)
79151 displayP4Expr(p, pExpr->pLeft);
97356 if( pExpr->pLeft && walkExpr(pWalker, pExpr->pLeft) ) return WRC_Abort;
98023 assert( pExpr->pLeft==0 && pExpr->pRight==0 );
98143 sqlite3ExprDelete(db, pExpr->pLeft);
98144 pExpr->pLeft = 0;
98322 Expr *pLeft = pExpr->pLeft;
98332 zDb = pLeft->u.zToken;
98333 pLeft = pRight->pLeft;
98336 zTable = pLeft->u.zToken;
98340 sqlite3RenameTokenRemap(pParse, (void*)&pExpr->y.pTab, (void*)pLeft);
98623 assert( pExpr->pLeft!=0 );
98624 nLeft = sqlite3ExprVectorSize(pExpr->pLeft);
98860 while( pParent->pLeft->op==TK_COLLATE ) pParent = pParent->pLeft;
98861 assert( pParent->pLeft==pE );
98862 pParent->pLeft = pNew;
99533 pExpr = pExpr->pLeft;
99552 assert( pExpr->pLeft->flags&EP_xIsSelect );
99554 pExpr->pLeft->x.pSelect->pEList->a[pExpr->iColumn].pExpr
99580 pNew->pLeft = pExpr;
99600 pExpr = pExpr->pLeft;
99619 pExpr = pExpr->pLeft;
99659 p = p->pLeft;
99671 if( p->pLeft && (p->pLeft->flags & EP_Collate)!=0 ){
99672 p = p->pLeft;
99759 assert( pExpr->pLeft );
99760 aff = sqlite3ExprAffinity(pExpr->pLeft);
99816 const Expr *pLeft,
99820 assert( pLeft );
99821 if( pLeft->flags & EP_Collate ){
99822 pColl = sqlite3ExprCollSeq(pParse, pLeft);
99826 pColl = sqlite3ExprCollSeq(pParse, pLeft);
99844 return sqlite3BinaryCompareCollSeq(pParse, p->pRight, p->pLeft);
99846 return sqlite3BinaryCompareCollSeq(pParse, p->pLeft, p->pRight);
99855 Expr *pLeft, /* The left operand */
99869 p4 = sqlite3BinaryCompareCollSeq(pParse, pRight, pLeft);
99871 p4 = sqlite3BinaryCompareCollSeq(pParse, pLeft, pRight);
99873 p5 = binaryCompareP5(pLeft, pRight, jumpIfNull);
99987 pRet->pLeft = pVector;
100075 Expr *pLeft = pExpr->pLeft;
100077 int nLeft = sqlite3ExprVectorSize(pLeft);
100105 regLeft = exprCodeSubselect(pParse, pLeft);
100113 r1 = exprVectorRegister(pParse, pLeft, i, regLeft, &pL, &regFree1);
100212 heightOfExpr(p->pLeft, &nHeight);
100347 Expr *pLeft,
100352 sqlite3ExprDelete(db, pLeft);
100359 if( pLeft ){
100360 pRoot->pLeft = pLeft;
100361 pRoot->flags |= EP_Propagate & pLeft->flags;
100377 Expr *pLeft, /* Left operand */
100386 sqlite3ExprAttachSubtrees(pParse->db, p, pLeft, pRight);
100389 sqlite3ExprDelete(pParse->db, pLeft);
100419 SQLITE_PRIVATE Expr *sqlite3ExprAnd(Parse *pParse, Expr *pLeft, Expr *pRight){
100421 if( pLeft==0 ){
100424 return pLeft;
100425 }else if( (ExprAlwaysFalse(pLeft) || ExprAlwaysFalse(pRight))
100428 sqlite3ExprDelete(db, pLeft);
100432 return sqlite3PExpr(pParse, TK_AND, pLeft, pRight);
100593 assert( p->pLeft==0 );
100601 if( p->pLeft && p->op!=TK_SELECT_COLUMN ) sqlite3ExprDeleteNN(db, p->pLeft);
100699 if( p->pLeft || p->x.pList ){
100740 nByte += dupedExprSize(p->pLeft, flags) + dupedExprSize(p->pRight, flags);
100827 pNew->pLeft = p->pLeft ?
100828 exprDup(db, p->pLeft, EXPRDUP_REDUCE, &zAlloc) : 0;
100844 pNew->pLeft = p->pLeft;
100846 assert( p->pRight==0 || p->pRight==p->pLeft );
100848 pNew->pLeft = sqlite3ExprDup(db, p->pLeft, 0);
100960 assert( pOldExpr->pLeft==pOldExpr->pRight );
100961 pPriorSelectCol = pNewExpr->pLeft = pNewExpr->pRight;
100966 assert( pPriorSelectCol==pItem[-1].pExpr->pLeft );
100967 pNewExpr->pLeft = pPriorSelectCol;
101446 Expr *pLeft = sqlite3ExprSimplifiedAndOr(pExpr->pLeft);
101447 if( ExprAlwaysTrue(pLeft) || ExprAlwaysFalse(pRight) ){
101448 pExpr = pExpr->op==TK_AND ? pRight : pLeft;
101449 }else if( ExprAlwaysTrue(pRight) || ExprAlwaysFalse(pLeft) ){
101450 pExpr = pExpr->op==TK_AND ? pLeft : pRight;
101729 rc = sqlite3ExprIsInteger(p->pLeft, pValue);
101734 if( sqlite3ExprIsInteger(p->pLeft, &v) ){
101763 p = p->pLeft;
101800 p = p->pLeft;
101911 pLHS = pIn->pLeft;
101912 pIn->pLeft = 0;
101914 pIn->pLeft = pLHS;
102074 Expr *pLhs = sqlite3VectorFieldSubexpr(pX->pLeft, i);
102117 Expr *pLhs = sqlite3VectorFieldSubexpr(pX->pLeft, i);
102205 n = sqlite3ExprVectorSize(pX->pLeft);
102223 Expr *pLeft = pExpr->pLeft;
102224 int nVal = sqlite3ExprVectorSize(pLeft);
102233 Expr *pA = sqlite3VectorFieldSubexpr(pLeft, i);
102314 Expr *pLeft; /* the LHS of the IN operator */
102362 pLeft = pExpr->pLeft;
102363 nVal = sqlite3ExprVectorSize(pLeft);
102412 Expr *p = sqlite3VectorFieldSubexpr(pLeft, i);
102431 affinity = sqlite3ExprAffinity(pLeft);
102439 pKeyInfo->aColl[0] = sqlite3ExprCollSeq(pParse, pExpr->pLeft);
102575 sqlite3ExprDup(db, pSel->pLimit->pLeft, 0), pLimit);
102577 sqlite3ExprDelete(db, pSel->pLimit->pLeft);
102578 pSel->pLimit->pLeft = pLimit;
102611 int nVector = sqlite3ExprVectorSize(pIn->pLeft);
102618 sqlite3VectorErrorMsg(pParse, pIn->pLeft);
102666 Expr *pLeft; /* The LHS of the IN operator */
102677 pLeft = pExpr->pLeft;
102680 nVector = sqlite3ExprVectorSize(pExpr->pLeft);
102725 rLhsOrig = exprCodeVector(pParse, pLeft, &iDummy);
102747 CollSeq *pColl = sqlite3ExprCollSeq(pParse, pExpr->pLeft);
102802 Expr *p = sqlite3VectorFieldSubexpr(pExpr->pLeft, i);
102867 p = sqlite3VectorFieldSubexpr(pLeft, i);
103332 iReg = sqlite3ExprCodeTarget(pParse, pExpr->pLeft,target);
103468 inReg = sqlite3ExprCodeTarget(pParse, pExpr->pLeft, target);
103489 Expr *pLeft = pExpr->pLeft;
103490 if( sqlite3ExprIsVector(pLeft) ){
103493 r1 = sqlite3ExprCodeTemp(pParse, pLeft, &regFree1);
103495 codeCompare(pParse, pLeft, pExpr->pRight, op,
103532 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
103540 Expr *pLeft = pExpr->pLeft;
103541 assert( pLeft );
103542 if( pLeft->op==TK_INTEGER ){
103543 codeInteger(pParse, pLeft, 1, target);
103546 }else if( pLeft->op==TK_FLOAT ){
103548 codeReal(v, pLeft->u.zToken, 1, target);
103557 r2 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree2);
103567 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
103575 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
103590 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
103761 if( pExpr->pLeft->iTable==0 ){
103762 pExpr->pLeft->iTable = sqlite3CodeSubselect(pParse, pExpr->pLeft);
103764 assert( pExpr->iTable==0 || pExpr->pLeft->op==TK_SELECT );
103766 && pExpr->iTable!=(n = sqlite3ExprVectorSize(pExpr->pLeft))
103771 return pExpr->pLeft->iTable + pExpr->iColumn;
103805 pExpr = pExpr->pLeft;
103884 inReg = sqlite3ExprCodeTarget(pParse, pExpr->pLeft, target);
103931 if( (pX = pExpr->pLeft)!=0 ){
103942 opCompare.pLeft = pDel;
104269 pDel = sqlite3ExprDup(db, pExpr->pLeft, 0);
104272 exprAnd.pLeft = &compLeft;
104275 compLeft.pLeft = pDel;
104278 compRight.pLeft = pDel;
104343 sqlite3ExprIfFalse(pParse, pExpr->pLeft, d2,
104349 sqlite3ExprIfTrue(pParse, pExpr->pLeft, dest, jumpIfNull);
104356 sqlite3ExprIfFalse(pParse, pExpr->pLeft, dest, jumpIfNull);
104368 sqlite3ExprIfTrue(pParse, pExpr->pLeft, dest,
104371 sqlite3ExprIfFalse(pParse, pExpr->pLeft, dest,
104389 if( sqlite3ExprIsVector(pExpr->pLeft) ) goto default_expr;
104391 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
104393 codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
104413 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
104515 sqlite3ExprIfFalse(pParse, pExpr->pLeft, dest, jumpIfNull);
104520 sqlite3ExprIfTrue(pParse, pExpr->pLeft, d2,
104529 sqlite3ExprIfTrue(pParse, pExpr->pLeft, dest, jumpIfNull);
104542 sqlite3ExprIfFalse(pParse, pExpr->pLeft, dest,
104547 sqlite3ExprIfTrue(pParse, pExpr->pLeft, dest,
104565 if( sqlite3ExprIsVector(pExpr->pLeft) ) goto default_expr;
104567 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
104569 codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
104587 r1 = sqlite3ExprCodeTemp(pParse, pExpr->pLeft, &regFree1);
104726 if( pA->op==TK_COLLATE && sqlite3ExprCompare(pParse, pA->pLeft,pB,iTab)<2 ){
104729 if( pB->op==TK_COLLATE && sqlite3ExprCompare(pParse, pA,pB->pLeft,iTab)<2 ){
104761 && sqlite3ExprCompare(pParse, pA->pLeft, pB->pLeft, iTab) ) return 2;
104843 return exprImpliesNotNull(pParse, p->pLeft, pNN, iTab, 1);
104855 return exprImpliesNotNull(pParse, p->pLeft, pNN, iTab, 1);
104882 return exprImpliesNotNull(pParse, p->pLeft, pNN, iTab, seenNot);
104887 return exprImpliesNotNull(pParse, p->pLeft, pNN, iTab, 1);
104891 return exprImpliesNotNull(pParse, p->pLeft, pNN, iTab, 1);
104927 && (sqlite3ExprImpliesExpr(pParse, pE1, pE2->pLeft, iTab)
104933 && exprImpliesNotNull(pParse, pE1, pE2->pLeft, iTab, 0)
104984 sqlite3WalkExpr(pWalker, pExpr->pLeft);
104993 if( sqlite3WalkExpr(pWalker, pExpr->pLeft)==WRC_Abort ){
105008 Expr *pLeft = pExpr->pLeft;
105018 if( (pLeft->op==TK_COLUMN && ALWAYS(pLeft->y.pTab!=0)
105019 && IsVirtual(pLeft->y.pTab))
105058 p = p->pLeft;
105061 if( sqlite3ExprImpliesNonNullRow(p->pLeft, iTab) ) return 1;
105826 if( pDflt && pDflt->pLeft->op==TK_NULL ){
109718 pExpr = pExpr->pLeft;
111494 x.pLeft = pExpr;
111525 }else if( p->op==TK_COLLATE && p->pLeft->op==TK_STRING ){
111526 p->pLeft->op = TK_ID;
119285 Expr *pLeft; /* Value from parent table row */
119292 pLeft = exprTableRegister(pParse, pTab, regData, iCol);
119297 pEq = sqlite3PExpr(pParse, TK_EQ, pLeft, pRight);
119317 Expr *pLeft; /* Value from parent table row */
119320 pLeft = exprTableRegister(pParse, pTab, regData, -1);
119322 pNe = sqlite3PExpr(pParse, TK_NE, pLeft, pRight);
119329 pLeft = exprTableRegister(pParse, pTab, regData, iCol);
119331 pEq = sqlite3PExpr(pParse, TK_IS, pLeft, pRight);
129256 sqlite3SetJoinExpr(p->pLeft, iTable);
129279 unsetJoinExpr(p->pLeft, iTable);
129301 struct SrcList_item *pLeft; /* Left table being joined */
129305 pLeft = &pSrc->a[0];
129306 pRight = &pLeft[1];
129307 for(i=0; i<pSrc->nSrc-1; i++, pRight++, pLeft++){
129311 if( NEVER(pLeft->pTab==0 || pRightTab==0) ) continue;
131028 assert( pLimit->pLeft!=0 );
131032 if( sqlite3ExprIsInteger(pLimit->pLeft, &n) ){
131042 sqlite3ExprCode(pParse, pLimit->pLeft, iLimit);
131490 && sqlite3ExprIsInteger(pPrior->pLimit->pLeft, &nLimit)
132335 ifNullRow.pLeft = pCopy;
132369 pExpr->pLeft = substExpr(pSubst, pExpr->pLeft);
133084 Expr *pRight, *pLeft;
133089 findConstInWhere(pConst, pExpr->pLeft);
133094 pLeft = pExpr->pLeft;
133096 assert( pLeft!=0 );
133097 if( pRight->op==TK_COLUMN && sqlite3ExprIsConstant(pLeft) ){
133098 constInsert(pConst,pRight,pLeft,pExpr);
133100 if( pLeft->op==TK_COLUMN && sqlite3ExprIsConstant(pRight) ){
133101 constInsert(pConst,pLeft,pRight,pExpr);
133130 assert( pExpr->pLeft==0 );
133131 pExpr->pLeft = sqlite3ExprDup(pConst->pParse->db, pConst->apExpr[i*2+1], 0);
133291 pWhere = pWhere->pLeft;
133605 Select *pLeft; /* Left-most SELECT statement */
133675 for(pLeft=pSel; pLeft->pPrior; pLeft=pLeft->pPrior);
133676 pEList = pLeft->pEList;
133908 assert( pE->op!=TK_DOT || (pE->pLeft!=0 && pE->pLeft->op==TK_ID) );
133947 assert( pE->pLeft!=0 );
133948 assert( !ExprHasProperty(pE->pLeft, EP_IntValue) );
133949 zTName = pE->pLeft->u.zToken;
134011 Expr *pLeft;
134012 pLeft = sqlite3Expr(db, TK_ID, zTabName);
134013 pExpr = sqlite3PExpr(pParse, TK_DOT, pLeft, pRight);
134015 pLeft = sqlite3Expr(db, TK_ID, zSchemaName);
134016 pExpr = sqlite3PExpr(pParse, TK_DOT, pLeft, pExpr);
138252 sCol[0].pLeft = &sCol[1];
138277 sCol[0].pLeft = pExpr;
138281 sCol[0].pLeft = &sCol[1];
141156 ExprList *pOrigLhs = pNew->pLeft->x.pList; /* Original unmodified LHS */
141175 pNew->pLeft->x.pList = pLhs;
141183 sqlite3ExprDelete(db, pNew->pLeft);
141184 pNew->pLeft = p;
141991 whereApplyPartialIndexConstraints(pTruth->pLeft, iTabCur, pWC);
142139 && sqlite3ExprVectorSize(pTerm->pExpr->pLeft)==1
142165 pCompare->pLeft = pTerm->pExpr->pLeft;
142173 pCompare->pLeft = 0;
142896 pAndExpr->pLeft = pOrExpr;
143012 pAndExpr->pLeft = 0;
143168 sEAlt.pLeft = pE->pLeft;
143322 if( pExpr->pLeft->op==TK_VECTOR
143324 || sqlite3BinaryCompareCollSeq(pParse, pExpr->pLeft, pExpr->pRight) !=
143325 sqlite3BinaryCompareCollSeq(pParse, pExpr->pRight, pExpr->pLeft)
143329 SWAP(Expr*,pExpr->pRight,pExpr->pLeft);
143390 Expr *pRight, *pLeft; /* Right and left size of LIKE operator */
143407 pLeft = pList->a[1].pExpr;
143472 if( pLeft->op!=TK_COLUMN
143473 || sqlite3ExprAffinity(pLeft)!=SQLITE_AFF_TEXT
143474 || IsVirtual(pLeft->y.pTab) /* Value might be numeric */
143633 Expr *pLeft = pExpr->pLeft;
143635 testcase( pLeft->op==TK_COLUMN && pLeft->y.pTab==0 );
143636 if( ExprIsVtab(pLeft) ){
143642 SWAP(Expr*, pLeft, pRight);
143644 *ppLeft = pLeft;
143726 assert( pOne->pExpr->pLeft!=0 && pOne->pExpr->pRight!=0 );
143727 assert( pTwo->pExpr->pLeft!=0 && pTwo->pExpr->pRight!=0 );
143728 if( sqlite3ExprCompare(0,pOne->pExpr->pLeft, pTwo->pExpr->pLeft, -1) ) return;
143987 Expr *pLeft = 0;
144011 pLeft = pOrTerm->pExpr->pLeft;
144032 && sqlite3ExprCompare(pParse, pOrTerm->pExpr->pLeft, pLeft, -1)
144042 affLeft = sqlite3ExprAffinity(pOrTerm->pExpr->pLeft);
144059 Expr *pLeft = 0; /* The LHS of the IN operator */
144069 pLeft = pOrTerm->pExpr->pLeft;
144071 assert( pLeft!=0 );
144072 pDup = sqlite3ExprDup(db, pLeft, 0);
144113 aff1 = sqlite3ExprAffinity(pExpr->pLeft);
144122 return sqlite3ExprCollSeqMatch(pParse, pExpr->pLeft, pExpr->pRight);
144264 prereqLeft = sqlite3WhereExprUsage(pMaskSet, pExpr->pLeft);
144298 Expr *pLeft = sqlite3ExprSkipCollate(pExpr->pLeft);
144304 assert( pLeft->op==TK_VECTOR );
144305 pLeft = pLeft->x.pList->a[pTerm->iField-1].pExpr;
144308 if( exprMightBeIndexed(pSrc, prereqLeft, aiCurCol, pLeft, op) ){
144380 sqlite3ExprDup(db, pExpr->pLeft, 0),
144420 Expr *pLeft; /* LHS of LIKE/GLOB operator */
144429 pLeft = pExpr->x.pList->a[1].pExpr;
144463 pNewExpr1 = sqlite3ExprDup(db, pLeft, 0);
144471 pNewExpr2 = sqlite3ExprDup(db, pLeft, 0);
144498 Expr *pRight = 0, *pLeft = 0;
144499 int res = isAuxiliaryVtabOperator(db, pExpr, &eOp2, &pLeft, &pRight);
144506 prereqColumn = sqlite3WhereExprUsage(pMaskSet, pLeft);
144519 pNewTerm->leftCursor = pLeft->iTable;
144520 pNewTerm->u.leftColumn = pLeft->iColumn;
144528 SWAP(Expr*, pLeft, pRight);
144542 && (nLeft = sqlite3ExprVectorSize(pExpr->pLeft))>1
144544 && ( (pExpr->pLeft->flags & EP_xIsSelect)==0
144551 Expr *pLeft = sqlite3ExprForVectorField(pParse, pExpr->pLeft, i);
144554 pNew = sqlite3PExpr(pParse, pExpr->op, pLeft, pRight);
144574 && pExpr->pLeft->op==TK_VECTOR
144581 for(i=0; i<sqlite3ExprVectorSize(pExpr->pLeft); i++){
144599 && pExpr->pLeft->op==TK_COLUMN
144600 && pExpr->pLeft->iColumn>=0
144605 Expr *pLeft = pExpr->pLeft;
144610 sqlite3ExprDup(db, pLeft, 0),
144618 pNewTerm->leftCursor = pLeft->iTable;
144619 pNewTerm->u.leftColumn = pLeft->iColumn;
144666 sqlite3WhereSplit(pWC, pE2->pLeft, op);
144725 if( p->pLeft ) mask |= sqlite3WhereExprUsageNN(pMaskSet, p->pLeft);
145081 || sqlite3ExprCompareSkip(pTerm->pExpr->pLeft,
145112 assert(pX->pLeft);
147170 int nCmp = sqlite3ExprVectorSize(pTerm->pExpr->pLeft);
147180 Expr *pLhs = pTerm->pExpr->pLeft->x.pList->a[i].pExpr;
147662 if( !whereUsablePartialIndex(iTab,isLeft,pWC,pWhere->pLeft) ) return 0;
148139 if( pX->pLeft ){
151266 for(pSub=pDup; ExprHasProperty(pSub, EP_Skip); pSub=pSub->pLeft){
153529 p->pLeft = p->pRight = 0;
157074 Select *pRight, *pLeft = yymsp[-4].minor.yy539;
157076 if( ALWAYS(pLeft) ) pLeft->selFlags &= ~SF_MultiValue;
157079 pRight->pPrior = pLeft;
157082 yymsp[-4].minor.yy539 = pLeft;
157116 Expr *pLeft = sqlite3ExprAlloc(pParse->db, TK_ID, &yymsp[-2].minor.yy0, 1);
157117 Expr *pDot = sqlite3PExpr(pParse, TK_DOT, pLeft, pRight);
166131 Fts3Expr *pLeft; /* Left operand */
170203 fts3EvalAllocateReaders(pCsr, pExpr->pLeft, pnToken, pnOr, pRc);
170245 char *pLeft;
170252 pLeft = p->doclist.aAll;
170260 pLeft = pList;
170266 pTab->bDescIdx, nDiff, pLeft, nLeft, &pRight, &nRight
170268 sqlite3_free(pLeft);
170856 fts3EvalStartReaders(pCsr, pExpr->pLeft, pRc);
170858 pExpr->bDeferred = (pExpr->pLeft->bDeferred && pExpr->pRight->bDeferred);
170918 assert( pExpr->pLeft && pExpr->pRight );
170920 pRoot = pExpr->pLeft;
170924 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pLeft, ppTC, ppOr, pRc);
171308 Fts3Expr *pLeft = pExpr->pLeft;
171310 assert( !pLeft->bDeferred || !pRight->bDeferred );
171312 if( pLeft->bDeferred ){
171321 fts3EvalNextRow(pCsr, pLeft, pRc);
171322 pExpr->iDocid = pLeft->iDocid;
171323 pExpr->bEof = pLeft->bEof;
171326 fts3EvalNextRow(pCsr, pLeft, pRc);
171328 while( !pLeft->bEof && !pRight->bEof && *pRc==SQLITE_OK ){
171329 sqlite3_int64 iDiff = DOCID_CMP(pLeft->iDocid, pRight->iDocid);
171332 fts3EvalNextRow(pCsr, pLeft, pRc);
171337 pExpr->iDocid = pLeft->iDocid;
171338 pExpr->bEof = (pLeft->bEof || pRight->bEof);
171348 if( pLeft->pPhrase && pLeft->pPhrase->doclist.aAll ){
171349 Fts3Doclist *pDl = &pLeft->pPhrase->doclist;
171350 while( *pRc==SQLITE_OK && pLeft->bEof==0 ){
171352 fts3EvalNextRow(pCsr, pLeft, pRc);
171355 pRight->bEof = pLeft->bEof = 1;
171362 Fts3Expr *pLeft = pExpr->pLeft;
171364 sqlite3_int64 iCmp = DOCID_CMP(pLeft->iDocid, pRight->iDocid);
171366 assert( pLeft->bStart || pLeft->iDocid==pRight->iDocid );
171367 assert( pRight->bStart || pLeft->iDocid==pRight->iDocid );
171369 if( pRight->bEof || (pLeft->bEof==0 && iCmp<0) ){
171370 fts3EvalNextRow(pCsr, pLeft, pRc);
171371 }else if( pLeft->bEof || iCmp>0 ){
171374 fts3EvalNextRow(pCsr, pLeft, pRc);
171378 pExpr->bEof = (pLeft->bEof && pRight->bEof);
171379 iCmp = DOCID_CMP(pLeft->iDocid, pRight->iDocid);
171380 if( pRight->bEof || (pLeft->bEof==0 && iCmp<0) ){
171381 pExpr->iDocid = pLeft->iDocid;
171390 Fts3Expr *pLeft = pExpr->pLeft;
171398 fts3EvalNextRow(pCsr, pLeft, pRc);
171399 if( pLeft->bEof==0 ){
171402 && DOCID_CMP(pLeft->iDocid, pRight->iDocid)>0
171407 pExpr->iDocid = pLeft->iDocid;
171408 pExpr->bEof = pLeft->bEof;
171470 for(p=pExpr; p->pLeft; p=p->pLeft){
171491 for(p=pExpr->pLeft; p && res; p=p->pLeft){
171494 assert( p->pParent && p->pParent->pLeft==p );
171531 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
171556 for(p=pExpr; p->pPhrase==0; p=p->pLeft){
171569 int bHit1 = fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc);
171577 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
171732 fts3EvalRestart(pCsr, pExpr->pLeft, pRc);
171771 fts3EvalUpdateCounts(pExpr->pLeft, nCol);
171813 for(p=pRoot; p; p=p->pLeft){
172010 for(p=pNear; p; p=p->pLeft){
173270 pNew->pLeft = pSplit;
173322 pNot->pLeft = pNotBranch;
173329 isPhrase = (eType==FTSQUERY_PHRASE || p->pLeft);
173377 assert( pPrev && pPrev->pLeft && pPrev->pRight==0 );
173408 while( pIter->pLeft ){
173409 pIter = pIter->pLeft;
173411 pIter->pLeft = pRet;
173439 rc = fts3ExprCheckDepth(p->pLeft, nMaxDepth-1);
173484 for(p=pRoot; p->eType==eType; p=p->pLeft){
173485 assert( p->pParent==0 || p->pParent->pLeft==p );
173486 assert( p->pLeft && p->pRight );
173494 assert( pParent==0 || pParent->pLeft==p );
173497 pParent->pLeft = 0;
173510 pFree->pLeft = apLeaf[iLvl];
173512 pFree->pLeft->pParent = pFree;
173531 for(p=pParent->pRight; p->eType==eType; p=p->pLeft);
173534 assert( pParent->pParent==0 || pParent->pParent->pLeft==pParent );
173537 pParent->pParent->pLeft = pParent->pRight;
173559 pFree->pLeft = apLeaf[i];
173560 pFree->pLeft->pParent = pFree;
173588 Fts3Expr *pLeft = pRoot->pLeft;
173591 pRoot->pLeft = 0;
173593 pLeft->pParent = 0;
173596 rc = fts3ExprBalance(&pLeft, nMaxDepth-1);
173603 sqlite3Fts3ExprFree(pLeft);
173605 assert( pLeft && pRight );
173606 pRoot->pLeft = pLeft;
173607 pLeft->pParent = pRoot;
173757 for(p=pDel; p && (p->pLeft||p->pRight); p=(p->pLeft ? p->pLeft : p->pRight)){
173758 assert( p->pParent==0 || p==p->pParent->pRight || p==p->pParent->pLeft );
173763 if( pParent && p==pParent->pLeft && pParent->pRight ){
173765 while( p && (p->pLeft || p->pRight) ){
173766 assert( p==p->pParent->pRight || p==p->pParent->pLeft );
173767 p = (p->pLeft ? p->pLeft : p->pRight);
173828 if( zBuf ) zBuf = exprToString(pExpr->pLeft, zBuf);
182278 assert( pExpr->pLeft && pExpr->pRight );
182279 rc = fts3ExprIterate2(pExpr->pLeft, piPhrase, x, pCtx);
182927 assert( (pExpr->pLeft==0)==(pExpr->pRight==0) );
182929 if( pExpr->pLeft ){
182930 rc = fts3ExprLHitGather(pExpr->pLeft, p);
189604 RtreeNode *pLeft,
189686 RtreeNode *pTarget = (ii<iBestSplit)?pLeft:pRight;
189731 RtreeNode *pLeft = 0;
189756 pLeft = nodeNew(pRtree, pNode);
189761 pLeft = pNode;
189762 pRight = nodeNew(pRtree, pLeft->pParent);
189763 pLeft->nRef++;
189766 if( !pLeft || !pRight ){
189771 memset(pLeft->zData, 0, pRtree->iNodeSize);
189774 rc = splitNodeStartree(pRtree, aCell, nCell, pLeft, pRight,
189786 || (0==pLeft->iNode && SQLITE_OK!=(rc = nodeWrite(pRtree, pLeft)))
189792 leftbbox.iRowid = pLeft->iNode;
189795 rc = rtreeInsertCell(pRtree, pLeft->pParent, &leftbbox, iHeight+1);
189800 RtreeNode *pParent = pLeft->pParent;
189802 rc = nodeParentIndex(pRtree, pLeft, &iCell);
189826 for(i=0; i<NCELL(pLeft); i++){
189827 i64 iRowid = nodeGetRowid(pRtree, pLeft, i);
189828 rc = updateMapping(pRtree, iRowid, pLeft, iHeight);
189834 rc = updateMapping(pRtree, pCell->iRowid, pLeft, iHeight);
189842 rc = nodeRelease(pRtree, pLeft);
189843 pLeft = 0;
189848 nodeRelease(pRtree, pLeft);
192494 static GeoEvent *geopolyEventMerge(GeoEvent *pLeft, GeoEvent *pRight){
192498 while( pRight && pLeft ){
192499 if( pRight->x <= pLeft->x ){
192504 pLast->pNext = pLeft;
192505 pLast = pLeft;
192506 pLeft = pLeft->pNext;
192509 pLast->pNext = pRight ? pRight : pLeft;
192541 static GeoSegment *geopolySegmentMerge(GeoSegment *pLeft, GeoSegment *pRight){
192545 while( pRight && pLeft ){
192546 double r = pRight->y - pLeft->y;
192547 if( r==0.0 ) r = pRight->C - pLeft->C;
192553 pLast->pNext = pLeft;
192554 pLast = pLeft;
192555 pLeft = pLeft->pNext;
192558 pLast->pNext = pRight ? pRight : pLeft;
206595 void *pLeft, /* Lhs input changeset */
206606 rc = sqlite3changegroup_add(pGrp, nLeft, pLeft);
208340 Fts5ExprNode *pLeft,
208347 Fts5ExprNode *pLeft,
212952 Fts5ExprPhrase *pLeft = pNear->apPhrase[0];
212970 if( pLeft->aTerm[0].pSynonym ){
212971 iLast = fts5ExprSynonymRowid(&pLeft->aTerm[0], bDesc, 0);
212973 iLast = pLeft->aTerm[0].pIter->iRowid;
214121 Fts5ExprNode *pLeft, /* Left hand child expression */
214132 || (eType==FTS5_STRING && !pLeft && !pRight)
214135 if( eType!=FTS5_STRING && pLeft==0 ) return pRight;
214136 if( eType!=FTS5_STRING && pRight==0 ) return pLeft;
214142 if( pLeft->eType==eType ) nChild += pLeft->nChild-1;
214181 fts5ExprAddChildren(pRet, pLeft);
214189 sqlite3Fts5ParseNodeFree(pLeft);
214198 Fts5ExprNode *pLeft, /* Left hand child expression */
214205 sqlite3Fts5ParseNodeFree(pLeft);
214209 assert( pLeft->eType==FTS5_STRING
214210 || pLeft->eType==FTS5_TERM
214211 || pLeft->eType==FTS5_EOF
214212 || pLeft->eType==FTS5_AND
214219 if( pLeft->eType==FTS5_AND ){
214220 pPrev = pLeft->apChild[pLeft->nChild-1];
214222 pPrev = pLeft;
214232 pRet = pLeft;
214238 if( pPrev==pLeft ){
214241 pLeft->apChild[pLeft->nChild-1] = pRight;
214242 pRet = pLeft;
214253 pRet = sqlite3Fts5ParseNode(pParse, FTS5_AND, pLeft, pRight, 0);
215286 Fts5HashEntry *pLeft,
215289 Fts5HashEntry *p1 = pLeft;
216036 Fts5Buffer *pLeft, /* Left hand side of comparison */
216039 int nCmp = MIN(pLeft->n, nRight);
216040 int res = memcmp(pLeft->p, pRight, nCmp);
216041 return (res==0 ? (pLeft->n - nRight) : res);
216054 static int fts5BufferCompare(Fts5Buffer *pLeft, Fts5Buffer *pRight){
216055 int nCmp = MIN(pLeft->n, pRight->n);
216056 int res = fts5Memcmp(pLeft->p, pRight->p, nCmp);
216057 return (res==0 ? (pLeft->n - pRight->n) : res);