Lines Matching refs:pRight

19409   Expr *pRight;          /* Right subnode */  member
33507 sqlite3TreeViewExpr(pView, p->pLimit->pLeft, p->pLimit->pRight!=0); in sqlite3TreeViewSelect()
33508 if( p->pLimit->pRight ){ in sqlite3TreeViewSelect()
33510 sqlite3TreeViewExpr(pView, p->pLimit->pRight, 0); in sqlite3TreeViewSelect()
33808 assert( pExpr->pRight ); in sqlite3TreeViewExpr()
33809 assert( sqlite3ExprSkipCollateAndLikely(pExpr->pRight)->op in sqlite3TreeViewExpr()
33811 x = (pExpr->op2==TK_ISNOT)*2 + sqlite3ExprTruthValue(pExpr->pRight); in sqlite3TreeViewExpr()
33989 sqlite3TreeViewExpr(pView, pExpr->pRight, 0); in sqlite3TreeViewExpr()
34002 pExpr->pRight==pExpr->pLeft ? " (SELECT-owner)" : ""); in sqlite3TreeViewExpr()
34037 sqlite3TreeViewExpr(pView, pExpr->pRight, 0); in sqlite3TreeViewExpr()
57477 struct RowSetEntry *pRight; /* Right subtree (larger entries) or list */ member
57609 pEntry->pRight = 0;
57617 pLast->pRight = pEntry;
57640 assert( pA->pRight==0 || pA->v<=pA->pRight->v );
57641 assert( pB->pRight==0 || pB->v<=pB->pRight->v );
57643 if( pA->v<pB->v ) pTail = pTail->pRight = pA;
57644 pA = pA->pRight;
57646 pTail->pRight = pB;
57650 pTail = pTail->pRight = pB;
57651 pB = pB->pRight;
57653 pTail->pRight = pA;
57658 return head.pRight;
57671 pNext = pIn->pRight;
57672 pIn->pRight = 0;
57703 p->pRight = pIn;
57707 if( pIn->pRight ){
57708 rowSetTreeToList(pIn->pRight, &pIn->pRight, ppLast);
57712 assert( (*ppLast)->pRight==0 );
57751 *ppList = p->pRight;
57752 p->pRight = rowSetNDeepTree(ppList, iDepth-1);
57755 *ppList = p->pRight;
57756 p->pLeft = p->pRight = 0;
57772 pList = p->pRight;
57773 p->pLeft = p->pRight = 0;
57777 pList = p->pRight;
57779 p->pRight = rowSetNDeepTree(&pList, iDepth);
57812 p->pEntry = p->pEntry->pRight;
57848 for(pTree = pRowSet->pForest; pTree; pTree=pTree->pRight){
57849 ppPrevTree = &pTree->pRight;
57864 pTree->pRight = 0;
57878 for(pTree = pRowSet->pForest; pTree; pTree=pTree->pRight){
57882 p = p->pRight;
79754 u8 *pRight; /* Location in parent of right-sibling pointer */ local
79813 pRight = &pParent->aData[pParent->hdrOffset+8];
79815 pRight = findCell(pParent, i+nxDiv-pParent->nOverflow);
79817 pgno = get4byte(pRight);
80242 put4byte(pRight, apNew[nNew-1]->pgno);
87785 if( pExpr->pRight ){
87787 displayP4Expr(p, pExpr->pRight);
107842 assert( pExpr->x.pList==0 || pExpr->pRight==0 );
107846 if( pExpr->pRight ){
107848 pExpr = pExpr->pRight;
108316 const Expr *pRight, /* Name of the column. */
108332 const char *zCol = pRight->u.zToken;
108701 assert( pExpr->pLeft==0 && pExpr->pRight==0 );
108801 sqlite3ExprDelete(db, pExpr->pRight);
108802 pExpr->pRight = 0;
108820 }else if( cnt==0 && ExprHasProperty(pRight,EP_DblQuoted) ){
108838 sqlite3ExprDelete(db, pExpr->pRight);
108839 pExpr->pRight = 0;
109107 Expr *pRight;
109113 pRight = pExpr;
109120 pRight = pExpr->pRight;
109121 if( pRight->op==TK_ID ){
109124 assert( pRight->op==TK_DOT );
109125 assert( !ExprHasProperty(pRight, EP_IntValue) );
109127 pLeft = pRight->pLeft;
109128 pRight = pRight->pRight;
109130 assert( ExprUseUToken(pLeft) && ExprUseUToken(pRight) );
109134 sqlite3RenameTokenRemap(pParse, (void*)pExpr, (void*)pRight);
109138 return lookupName(pParse, zDb, zTable, pRight, pNC, pExpr);
109432 Expr *pRight = sqlite3ExprSkipCollateAndLikely(pExpr->pRight);
109436 if( ALWAYS(pRight) && (pRight->op==TK_ID || pRight->op==TK_TRUEFALSE) ){
109437 int rc = resolveExprStep(pWalker, pRight);
109439 if( pRight->op==TK_TRUEFALSE ){
109465 assert( pExpr->pRight!=0 );
109466 nRight = sqlite3ExprVectorSize(pExpr->pRight);
110632 Expr *pNext = p->pRight;
110634 assert( !ExprUseXList(p) || p->x.pList==0 || p->pRight==0 );
110716 if( pExpr->pRight ){
110717 aff = sqlite3CompareAffinity(pExpr->pRight, aff);
110772 const Expr *pRight
110778 }else if( pRight && (pRight->flags & EP_Collate)!=0 ){
110779 pColl = sqlite3ExprCollSeq(pParse, pRight);
110783 pColl = sqlite3ExprCollSeq(pParse, pRight);
110799 return sqlite3BinaryCompareCollSeq(pParse, p->pRight, p->pLeft);
110801 return sqlite3BinaryCompareCollSeq(pParse, p->pLeft, p->pRight);
110811 Expr *pRight, /* The right operand */
110824 p4 = sqlite3BinaryCompareCollSeq(pParse, pRight, pLeft);
110826 p4 = sqlite3BinaryCompareCollSeq(pParse, pLeft, pRight);
110828 p5 = binaryCompareP5(pLeft, pRight, jumpIfNull);
111051 Expr *pRight = pExpr->pRight;
111063 if( nLeft!=sqlite3ExprVectorSize(pRight) ){
111082 regRight = exprCodeSubselect(pParse, pRight);
111092 r2 = exprVectorRegister(pParse, pRight, i, regRight, &pR, &regFree2);
111197 if( NEVER(p->pRight) && p->pRight->nHeight>nHeight ){
111198 nHeight = p->pRight->nHeight;
111345 Expr *pRight
111350 sqlite3ExprDelete(db, pRight);
111354 if( pRight ){
111355 pRoot->pRight = pRight;
111356 pRoot->flags |= EP_Propagate & pRight->flags;
111358 pRoot->nHeight = pRight->nHeight+1;
111386 Expr *pRight /* Right operand */
111394 sqlite3ExprAttachSubtrees(pParse->db, p, pLeft, pRight);
111398 sqlite3ExprDelete(pParse->db, pRight);
111484 SQLITE_PRIVATE Expr *sqlite3ExprAnd(Parse *pParse, Expr *pLeft, Expr *pRight){
111487 return pRight;
111488 }else if( pRight==0 ){
111491 u32 f = pLeft->flags | pRight->flags;
111496 sqlite3ExprDeferredDelete(pParse, pRight);
111499 return sqlite3PExpr(pParse, TK_AND, pLeft, pRight);
111730 assert( p->pRight==0 );
111737 assert( (ExprUseXList(p) && p->x.pList==0) || p->pRight==0 );
111738 if( p->pRight ){
111740 sqlite3ExprDeleteNN(db, p->pRight);
111875 assert( p->pRight==0 );
111911 if( p->pRight ) nByte += dupedExprSize(p->pRight);
112054 assert( p->pRight==0
112055 || p->pRight==p->pLeft
112061 pNew->pRight = p->pRight ?
112062 exprDup(db, p->pRight, EXPRDUP_REDUCE, &sEdupBuf) : 0;
112066 assert( p->pRight==0
112067 || p->pRight==p->pLeft
112072 pNew->pRight = sqlite3ExprDup(db, p->pRight, 0);
112186 if( pNewExpr->pRight ){
112187 pPriorSelectColOld = pOldExpr->pRight;
112188 pPriorSelectColNew = pNewExpr->pRight;
112189 pNewExpr->pLeft = pNewExpr->pRight;
112194 pNewExpr->pRight = pPriorSelectColNew;
112472 pFirst->pRight = pExpr;
112710 Expr *pRight = sqlite3ExprSimplifiedAndOr(pExpr->pRight);
112712 if( ExprAlwaysTrue(pLeft) || ExprAlwaysFalse(pRight) ){
112713 pExpr = pExpr->op==TK_AND ? pRight : pLeft;
112714 }else if( ExprAlwaysTrue(pRight) || ExprAlwaysFalse(pLeft) ){
112715 pExpr = pExpr->op==TK_AND ? pLeft : pRight;
115314 r2 = sqlite3ExprCodeTemp(pParse, pExpr->pRight, &regFree2);
115316 codeCompare(pParse, pLeft, pExpr->pRight, op, r1, r2,
115359 r2 = sqlite3ExprCodeTemp(pParse, pExpr->pRight, &regFree2);
115403 isTrue = sqlite3ExprTruthValue(pExpr->pRight);
115816 opCompare.pRight = aListelem[i].pExpr;
116163 exprAnd.pRight = &compRight;
116166 compLeft.pRight = pExpr->x.pList->a[0].pExpr;
116169 compRight.pRight = pExpr->x.pList->a[1].pExpr;
116235 sqlite3ExprIfTrue(pParse, pExpr->pRight, dest, jumpIfNull);
116240 sqlite3ExprIfTrue(pParse, pExpr->pRight, dest, jumpIfNull);
116254 isTrue = sqlite3ExprTruthValue(pExpr->pRight);
116282 r2 = sqlite3ExprCodeTemp(pParse, pExpr->pRight, &regFree2);
116283 codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
116407 sqlite3ExprIfFalse(pParse, pExpr->pRight, dest, jumpIfNull);
116413 sqlite3ExprIfFalse(pParse, pExpr->pRight, dest, jumpIfNull);
116428 isTrue = sqlite3ExprTruthValue(pExpr->pRight);
116459 r2 = sqlite3ExprCodeTemp(pParse, pExpr->pRight, &regFree2);
116460 codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
116680 if( sqlite3ExprCompare(pParse, pA->pRight, pB->pRight, iTab) ) return 2;
116794 if( exprImpliesNotNull(pParse, p->pRight, pNN, iTab, seenNot) ) return 1;
116904 || sqlite3ExprImpliesExpr(pParse, pE1, pE2->pRight, iTab) )
116995 bothImplyNotNullRow(pWalker, pExpr->pLeft, pExpr->pRight);
117028 Expr *pRight = pExpr->pRight;
117038 assert( pRight->op!=TK_COLUMN || ExprUseYTab(pRight) );
117042 || (pRight->op==TK_COLUMN
117043 && ALWAYS(pRight->y.pTab!=0)
117044 && IsVirtual(pRight->y.pTab))
117086 p = p->pRight;
133912 Expr *pRight; /* Column ref to child table */
133922 pRight = sqlite3Expr(db, TK_ID, zCol);
133923 pEq = sqlite3PExpr(pParse, TK_EQ, pLeft, pRight);
133944 Expr *pRight; /* Column ref to child table */
133947 pRight = exprTableColumn(db, pTab, pSrc->a[0].iCursor, -1);
133948 pNe = sqlite3PExpr(pParse, TK_NE, pLeft, pRight);
133956 pRight = sqlite3Expr(db, TK_ID, pTab->aCol[iCol].zCnName);
133957 pEq = sqlite3PExpr(pParse, TK_IS, pLeft, pRight);
145295 p = p->pRight;
145333 p = p->pRight;
145362 SrcItem *pRight; /* Right table being joined */
145366 pRight = &pLeft[1];
145367 for(i=0; i<pSrc->nSrc-1; i++, pRight++, pLeft++){
145368 Table *pRightTab = pRight->pSTab;
145372 joinType = (pRight->fg.jointype & JT_OUTER)!=0 ? EP_OuterON : EP_InnerON;
145377 if( pRight->fg.jointype & JT_NATURAL ){
145379 if( pRight->fg.isUsing || pRight->u3.pOn ){
145399 pRight->fg.isUsing = 1;
145400 pRight->fg.isSynthUsing = 1;
145401 pRight->u3.pUsing = pUsing;
145413 if( pRight->fg.isUsing ){
145414 IdList *pList = pRight->u3.pUsing;
145430 pRight->fg.isSynthUsing)==0
145457 pRight->fg.isSynthUsing)!=0 ){
145481 sqlite3SrcItemColumnUsed(pRight, iRightCol);
145497 else if( pRight->u3.pOn ){
145498 sqlite3SetJoinExpr(pRight->u3.pOn, pRight->iCursor, joinType);
145499 p->pWhere = sqlite3ExprAnd(pParse, p->pWhere, pRight->u3.pOn);
145500 pRight->u3.pOn = 0;
145501 pRight->fg.isOn = 1;
147115 pColExpr = pColExpr->pRight;
147392 if( pLimit->pRight ){
147395 sqlite3ExprCode(pParse, pLimit->pRight, iOffset);
148759 assert( pExpr->pRight==0 );
148818 pExpr->pRight = substExpr(pSubst, pExpr->pRight);
149266 if( pSub->pLimit && pSub->pLimit->pRight ) return 0; /* Restriction (14) */
149731 Expr *pRight, *pLeft;
149739 findConstInWhere(pConst, pExpr->pRight);
149744 pRight = pExpr->pRight;
149746 assert( pRight!=0 );
149748 if( pRight->op==TK_COLUMN && sqlite3ExprIsConstant(pConst->pParse, pLeft) ){
149749 constInsert(pConst,pRight,pLeft,pExpr);
149751 if( pLeft->op==TK_COLUMN && sqlite3ExprIsConstant(pConst->pParse, pRight) ){
149752 constInsert(pConst,pLeft,pRight,pExpr);
149829 propagateConstantExprRewriteOne(pConst, pExpr->pRight, 0);
150139 nChng += pushDownWhereTerms(pParse, pSubq, pWhere->pRight, pSrcList, iSrc);
150895 Expr *pE, *pRight, *pExpr;
151035 assert( pE->op!=TK_DOT || pE->pRight!=0 );
151037 if( pE->op==TK_DOT && pE->pRight->op==TK_ASTERISK ) break;
151055 pRight = pE->pRight;
151056 assert( pE->op!=TK_DOT || pRight!=0 );
151058 && (pE->op!=TK_DOT || pRight->op!=TK_ASTERISK)
151081 iErrOfst = pE->pRight->w.iOfst;
151123 pRight = sqlite3Expr(db, TK_ID, zUName);
151124 sqlite3ExprSetErrorOffset(pRight, iErrOfst);
151125 pNew = sqlite3ExprListAppend(pParse, pNew, pRight);
151191 pRight = sqlite3Expr(db, TK_ID, zName);
151202 pExpr = sqlite3PExpr(pParse, TK_DOT, pLeft, pRight);
151211 pExpr = pRight;
154772 assert( pTerm->pRight!=0 );
154774 if( pTerm->pRight->op!=TK_ASTERISK ) return 0;
160094 Expr *pRight, /* RHS of comparison */
160100 Expr *p = sqlite3VectorFieldSubexpr(pRight, i);
160416 iReg = sqlite3ExprCodeTarget(pParse, pX->pRight, iTarget);
160576 Expr *pRight = pTerm->pExpr->pRight;
160577 if( (pTerm->wtFlags & TERM_IS)==0 && sqlite3ExprCanBeNull(pRight) ){
160583 if( sqlite3CompareAffinity(pRight, zAff[j])==SQLITE_AFF_BLOB ){
160586 if( sqlite3ExprNeedsNoAffinityChange(pRight, zAff[j]) ){
160963 pTruth = pTruth->pRight;
161190 Expr *pRight = pTerm->pExpr->pRight;
161191 codeExprOrVector(pParse, pRight, iTarget, 1);
161232 Expr *pRight; /* RHS of the comparison */
161268 pCompare->pRight = pRight = sqlite3Expr(db, TK_REGISTER, 0);
161269 if( pRight ){
161270 pRight->iTable = iReg+j+2;
161363 if( sqlite3ExprIsVector(pX->pRight) ){
161365 codeExprOrVector(pParse, pX->pRight, r1, 1);
161376 r1 = sqlite3ExprCodeTemp(pParse, pX->pRight, &rTemp);
161400 codeExprOrVector(pParse, pX->pRight, memEndValue, 1);
161401 if( 0==sqlite3ExprIsVector(pX->pRight)
161408 if( 0==sqlite3ExprIsVector(pX->pRight) ){
161601 Expr *pRight = pRangeStart->pExpr->pRight;
161602 codeExprOrVector(pParse, pRight, regBase+nEq, nBtm);
161605 && sqlite3ExprCanBeNull(pRight)
161611 updateRangeAffinityStr(pRight, nBtm, &zStartAff[nEq]);
161615 if( sqlite3ExprIsVector(pRight)==0 ){
161702 Expr *pRight = pRangeEnd->pExpr->pRight;
161704 codeExprOrVector(pParse, pRight, regBase+nEq, nTop);
161707 && sqlite3ExprCanBeNull(pRight)
161713 updateRangeAffinityStr(pRight, nTop, zEndAff);
161721 if( sqlite3ExprIsVector(pRight)==0 ){
162464 SrcItem *pRight;
162466 pRight = &pWInfo->pTabList->a[pWInfo->a[k].iFrom];
162468 if( pRight->fg.viaCoroutine ){
162470 assert( pRight->fg.isSubquery && pRight->u4.pSubq!=0 );
162471 pSubq = pRight->u4.pSubq;
162661 || pExpr->pRight->op==TK_VECTOR
162662 || sqlite3BinaryCompareCollSeq(pParse, pExpr->pLeft, pExpr->pRight) !=
162663 sqlite3BinaryCompareCollSeq(pParse, pExpr->pRight, pExpr->pLeft)
162667 SWAP(Expr*,pExpr->pRight,pExpr->pLeft);
162729 Expr *pRight, *pLeft; /* Right and left size of LIKE operator */
162749 pRight = sqlite3ExprSkipCollate(pList->a[0].pExpr);
162750 op = pRight->op;
162753 int iCol = pRight->iColumn;
162759 assert( pRight->op==TK_VARIABLE || pRight->op==TK_REGISTER );
162761 assert( !ExprHasProperty(pRight, EP_IntValue) );
162762 z = (u8*)pRight->u.zToken;
162862 sqlite3VdbeSetVarmask(v, pRight->iColumn);
162863 assert( !ExprHasProperty(pRight, EP_IntValue) );
162864 if( *pisComplete && pRight->u.zToken[1] ){
162872 sqlite3ExprCodeTarget(pParse, pRight, r1);
163007 Expr *pRight = pExpr->pRight;
163012 assert( pRight==0 || pRight->op!=TK_COLUMN
163013 || (ExprUseYTab(pRight) && pRight->y.pTab!=0) );
163014 if( pRight && ExprIsVtab(pRight) ){
163016 SWAP(Expr*, pLeft, pRight);
163019 *ppRight = pRight;
163101 assert( pOne->pExpr->pLeft!=0 && pOne->pExpr->pRight!=0 );
163102 assert( pTwo->pExpr->pLeft!=0 && pTwo->pExpr->pRight!=0 );
163104 if( sqlite3ExprCompare(0,pOne->pExpr->pRight, pTwo->pExpr->pRight,-1) )return;
163418 affRight = sqlite3ExprAffinity(pOrTerm->pExpr->pRight);
163445 pDup = sqlite3ExprDup(db, pOrTerm->pExpr->pRight, 0);
163500 aff2 = sqlite3ExprAffinity(pExpr->pRight);
163508 && !sqlite3ExprCollSeqMatch(pParse, pExpr->pLeft, pExpr->pRight)
163678 assert( pExpr->pRight==0 );
163687 pTerm->prereqRight = sqlite3WhereExprUsage(pMaskSet, pExpr->pRight);
163738 Expr *pRight = sqlite3ExprSkipCollate(pExpr->pRight);
163755 if( pRight
163756 && exprMightBeIndexed(pSrc, aiCurCol, pRight, op)
163757 && !ExprHasProperty(pRight, EP_FixedCol)
164002 && sqlite3ExprVectorSize(pExpr->pRight)==nLeft
164004 || (pExpr->pRight->flags & EP_xIsSelect)==0)
164012 Expr *pRight = sqlite3ExprForVectorField(pParse, pExpr->pRight, i, nLeft);
164014 pNew = sqlite3PExpr(pParse, pExpr->op, pLeft, pRight);
164064 Expr *pRight = 0, *pLeft = 0;
164065 int res = isAuxiliaryVtabOperator(db, pExpr, &eOp2, &pLeft, &pRight);
164071 prereqExpr = sqlite3WhereExprUsage(pMaskSet, pRight);
164076 0, sqlite3ExprDup(db, pRight, 0));
164094 SWAP(Expr*, pLeft, pRight);
164138 sqlite3WhereSplit(pWC, pE2->pRight, op);
164249 whereAddLimitExpr(pWC, p->iOffset, p->pLimit->pRight,
164352 if( p->pRight ){
164353 mask |= sqlite3WhereExprUsageNN(pMaskSet, p->pRight);
164771 p = sqlite3ExprSkipCollateAndLikely(p->pRight);
164803 inexpr.pRight = pX->x.pSelect->pEList->a[iField].pExpr;
164886 && (pX = pTerm->pExpr->pRight, ALWAYS(pX!=0))
166058 && sqlite3ExprIsVector(pTerm->pExpr->pRight)
166462 rc = sqlite3Stat4ValueFromExpr(pParse, pLower->pExpr->pRight, aff, &p1);
166466 rc = sqlite3Stat4ValueFromExpr(pParse, pUpper->pExpr->pRight, aff, &p2);
166628 Expr *pExpr = pLower->pExpr->pRight;
166645 Expr *pExpr = pUpper->pExpr->pRight;
167475 Expr *pRight = pTerm->pExpr->pRight;
167478 if( sqlite3ExprIsInteger(pRight, &k, 0) && k>=(-1) && k<=1 ){
167534 pRhs = pTerm->pExpr->pRight;
167865 rc = whereEqualScanEst(pParse, pBuilder, pExpr->pRight, &nOut);
168079 pWhere = pWhere->pRight;
168292 wherePartIdxExpr(pParse, pIdx, pPart->pRight, pMask, iIdxCur, pItem);
168298 Expr *pRight = pPart->pRight;
168302 if( !sqlite3ExprIsConstant(0, pRight) ) return;
168312 p->pExpr = sqlite3ExprDup(db, pRight, 0);
168967 pH->pParse->db, pTerm->pExpr->pRight, ENC(pH->pParse->db),
175454 p->pLeft = p->pRight = 0;
175485 sqlite3ExprDelete(db, pA->pRight);
175486 pA->pRight = 0;
179368 Expr *pRight, *pLeft, *pDot;
179369 pRight = sqlite3PExpr(pParse, TK_ASTERISK, 0, 0);
179370 sqlite3ExprSetErrorOffset(pRight, (int)(yymsp[0].minor.yy0.z - pParse->zTail));
179372 pDot = sqlite3PExpr(pParse, TK_DOT, pLeft, pRight);
189172 Fts3Expr *pRight; /* Right operand */
193327 fts3EvalAllocateReaders(pCsr, pExpr->pRight, pnToken, pnOr, pRc);
193369 char *pRight;
193377 pRight = pList;
193381 pRight = p->doclist.aAll;
193389 pTab->bDescIdx, nDiff, pLeft, nLeft, &pRight, &nRight
193392 p->doclist.aAll = pRight;
193983 fts3EvalStartReaders(pCsr, pExpr->pRight, pRc);
193984 pExpr->bDeferred = (pExpr->pLeft->bDeferred && pExpr->pRight->bDeferred);
194044 assert( pExpr->pLeft && pExpr->pRight );
194052 pRoot = pExpr->pRight;
194056 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pRight, ppTC, ppOr, pRc);
194435 Fts3Expr *pRight = pExpr->pRight;
194436 assert( !pLeft->bDeferred || !pRight->bDeferred );
194441 fts3EvalNextRow(pCsr, pRight, pRc);
194442 pExpr->iDocid = pRight->iDocid;
194443 pExpr->bEof = pRight->bEof;
194444 }else if( pRight->bDeferred ){
194453 fts3EvalNextRow(pCsr, pRight, pRc);
194454 while( !pLeft->bEof && !pRight->bEof && *pRc==SQLITE_OK ){
194455 sqlite3_int64 iDiff = DOCID_CMP(pLeft->iDocid, pRight->iDocid);
194460 fts3EvalNextRow(pCsr, pRight, pRc);
194464 pExpr->bEof = (pLeft->bEof || pRight->bEof);
194466 assert( pRight->eType==FTSQUERY_PHRASE );
194467 if( pRight->pPhrase->doclist.aAll ){
194468 Fts3Doclist *pDl = &pRight->pPhrase->doclist;
194469 while( *pRc==SQLITE_OK && pRight->bEof==0 ){
194471 fts3EvalNextRow(pCsr, pRight, pRc);
194481 pRight->bEof = pLeft->bEof = 1;
194489 Fts3Expr *pRight = pExpr->pRight;
194490 sqlite3_int64 iCmp = DOCID_CMP(pLeft->iDocid, pRight->iDocid);
194492 assert_fts3_nc( pLeft->bStart || pLeft->iDocid==pRight->iDocid );
194493 assert_fts3_nc( pRight->bStart || pLeft->iDocid==pRight->iDocid );
194495 if( pRight->bEof || (pLeft->bEof==0 && iCmp<0) ){
194498 fts3EvalNextRow(pCsr, pRight, pRc);
194501 fts3EvalNextRow(pCsr, pRight, pRc);
194504 pExpr->bEof = (pLeft->bEof && pRight->bEof);
194505 iCmp = DOCID_CMP(pLeft->iDocid, pRight->iDocid);
194506 if( pRight->bEof || (pLeft->bEof==0 && iCmp<0) ){
194509 pExpr->iDocid = pRight->iDocid;
194517 Fts3Expr *pRight = pExpr->pRight;
194519 if( pRight->bStart==0 ){
194520 fts3EvalNextRow(pCsr, pRight, pRc);
194521 assert( *pRc!=SQLITE_OK || pRight->bStart );
194527 && !pRight->bEof
194528 && DOCID_CMP(pLeft->iDocid, pRight->iDocid)>0
194530 fts3EvalNextRow(pCsr, pRight, pRc);
194597 assert( p->pRight->pPhrase->doclist.nList>0 );
194598 nTmp += p->pRight->pPhrase->doclist.nList;
194610 Fts3Phrase *pPhrase = p->pRight->pPhrase;
194615 aPoslist = pExpr->pRight->pPhrase->doclist.pList;
194616 nToken = pExpr->pRight->pPhrase->nToken;
194623 p->eType==FTSQUERY_NEAR ? p->pRight->pPhrase : p->pPhrase
194658 && fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
194683 if( p->pRight->iDocid==pCsr->iPrevId ){
194684 fts3EvalInvalidatePoslist(p->pRight->pPhrase);
194696 int bHit2 = fts3EvalTestExpr(pCsr, pExpr->pRight, pRc);
194704 && !fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
194861 fts3EvalRestart(pCsr, pExpr->pRight, pRc);
194918 fts3EvalUpdateCounts(pExpr->pRight, nCol);
195182 if( pTest->eType==FTSQUERY_NEAR ) pTest = pTest->pRight;
196466 assert( pSplit->pParent->pRight==pSplit );
196467 pSplit->pParent->pRight = pNew;
196521 pNot->pRight = p;
196579 assert( pPrev && pPrev->pLeft && pPrev->pRight==0 );
196580 pPrev->pRight = p;
196643 rc = fts3ExprCheckDepth(p->pRight, nMaxDepth-1);
196688 assert( p->pLeft && p->pRight );
196713 pFree->pRight = p;
196715 pFree->pRight->pParent = pFree;
196733 for(p=pParent->pRight; p->eType==eType; p=p->pLeft);
196737 pParent->pRight->pParent = pParent->pParent;
196739 pParent->pParent->pLeft = pParent->pRight;
196742 pRoot = pParent->pRight;
196760 pFree->pRight = p;
196763 pFree->pRight->pParent = pFree;
196791 Fts3Expr *pRight = pRoot->pRight;
196794 pRoot->pRight = 0;
196796 pRight->pParent = 0;
196800 rc = fts3ExprBalance(&pRight, nMaxDepth-1);
196804 sqlite3Fts3ExprFree(pRight);
196807 assert( pLeft && pRight );
196810 pRoot->pRight = pRight;
196811 pRight->pParent = pRoot;
196959 for(p=pDel; p && (p->pLeft||p->pRight); p=(p->pLeft ? p->pLeft : p->pRight)){
196960 assert( p->pParent==0 || p==p->pParent->pRight || p==p->pParent->pLeft );
196965 if( pParent && p==pParent->pLeft && pParent->pRight ){
196966 p = pParent->pRight;
196967 while( p && (p->pLeft || p->pRight) ){
196968 assert( p==p->pParent->pRight || p==p->pParent->pLeft );
196969 p = (p->pLeft ? p->pLeft : p->pRight);
197033 if( zBuf ) zBuf = exprToString(pExpr->pRight, zBuf);
199657 SegmentNode *pRight; /* Pointer to right-sibling */
201559 pTree->pRight = pNew;
201625 for(pIter=pTree->pLeftmost; pIter && rc==SQLITE_OK; pIter=pIter->pRight){
201652 SegmentNode *pRight = p->pRight;
201656 assert( pRight==0 || p->zMalloc==0 );
201659 p = pRight;
205538 assert( pExpr->pLeft && pExpr->pRight );
205541 rc = fts3ExprIterate2(pExpr->pRight, piPhrase, x, pCtx);
206189 assert( (pExpr->pLeft==0)==(pExpr->pRight==0) );
206193 if( rc==SQLITE_OK ) rc = fts3ExprLHitGather(pExpr->pRight, p);
215901 RtreeNode *pRight,
215982 RtreeNode *pTarget = (ii<iBestSplit)?pLeft:pRight;
216033 RtreeNode *pRight = 0;
216056 pRight = nodeNew(pRtree, pNode);
216063 pRight = nodeNew(pRtree, pLeft->pParent);
216067 if( !pLeft || !pRight ){
216073 memset(pRight->zData, 0, pRtree->iNodeSize);
216075 rc = splitNodeStartree(pRtree, aCell, nCell, pLeft, pRight,
216086 if( SQLITE_OK!=(rc = nodeWrite(pRtree, pRight))
216092 rightbbox.iRowid = pRight->iNode;
216113 if( (rc = rtreeInsertCell(pRtree, pRight->pParent, &rightbbox, iHeight+1)) ){
216117 for(i=0; i<NCELL(pRight); i++){
216118 i64 iRowid = nodeGetRowid(pRtree, pRight, i);
216119 rc = updateMapping(pRtree, iRowid, pRight, iHeight);
216140 rc = nodeRelease(pRtree, pRight);
216141 pRight = 0;
216149 nodeRelease(pRtree, pRight);
218727 static GeoEvent *geopolyEventMerge(GeoEvent *pLeft, GeoEvent *pRight){
218731 while( pRight && pLeft ){
218732 if( pRight->x <= pLeft->x ){
218733 pLast->pNext = pRight;
218734 pLast = pRight;
218735 pRight = pRight->pNext;
218742 pLast->pNext = pRight ? pRight : pLeft;
218774 static GeoSegment *geopolySegmentMerge(GeoSegment *pLeft, GeoSegment *pRight){
218778 while( pRight && pLeft ){
218779 double r = pRight->y - pLeft->y;
218780 if( r==0.0 ) r = pRight->C - pLeft->C;
218782 pLast->pNext = pRight;
218783 pLast = pRight;
218784 pRight = pRight->pNext;
218791 pLast->pNext = pRight ? pRight : pLeft;
234332 void *pRight, /* Rhs input changeset */
234344 rc = sqlite3changegroup_add(pGrp, nRight, pRight);
236409 Fts5ExprNode *pRight,
236416 Fts5ExprNode *pRight
242746 Fts5ExprNode *pRight, /* Right hand child expression */
242756 || (eType==FTS5_STRING && !pLeft && !pRight)
242759 if( eType!=FTS5_STRING && pLeft==0 ) return pRight;
242760 if( eType!=FTS5_STRING && pRight==0 ) return pLeft;
242773 if( pRight->eType==eType ) nChild += pRight->nChild-1;
242806 assert( pLeft==0 && pRight==0 );
242812 fts5ExprAddChildren(pRet, pRight);
242813 pLeft = pRight = 0;
242830 sqlite3Fts5ParseNodeFree(pRight);
242839 Fts5ExprNode *pRight /* Right hand child expression */
242846 sqlite3Fts5ParseNodeFree(pRight);
242854 assert( pRight->eType==FTS5_STRING
242855 || pRight->eType==FTS5_TERM
242856 || pRight->eType==FTS5_EOF
242857 || (pRight->eType==FTS5_AND && pParse->bPhraseToAnd)
242870 if( pRight->eType==FTS5_EOF ){
242873 assert( pParse->apPhrase[pParse->nPhrase-1]==pRight->pNear->apPhrase[0] );
242874 sqlite3Fts5ParseNodeFree(pRight);
242882 pRet = pRight;
242884 pLeft->apChild[pLeft->nChild-1] = pRight;
242888 ap = &pParse->apPhrase[pParse->nPhrase-1-pRight->pNear->nPhrase];
242890 memmove(ap, &ap[1], sizeof(Fts5ExprPhrase*)*pRight->pNear->nPhrase);
242896 pRet = sqlite3Fts5ParseNode(pParse, FTS5_AND, pLeft, pRight, 0);
244063 Fts5HashEntry *pRight
244066 Fts5HashEntry *p2 = pRight;
245015 const u8 *pRight, int nRight /* Right hand side of comparison */
245018 int res = memcmp(pLeft->p, pRight, nCmp);
245032 static int fts5BufferCompare(Fts5Buffer *pLeft, Fts5Buffer *pRight){
245034 nCmp = MIN(pLeft->n, pRight->n);
245036 assert( nCmp<=0 || pRight->p!=0 );
245037 res = fts5Memcmp(pLeft->p, pRight->p, nCmp);
245038 return (res==0 ? (pLeft->n - pRight->n) : res);