Lines Matching refs:pList
10502 ** Expr.x.pList is a list of arguments if the expression is an SQL function,
10506 ** Expr.flags mask, then Expr.x.pSelect is valid. Otherwise, Expr.x.pList is
10543 ** the subtrees in Expr.x.pList or Expr.x.pSelect are always separately
10563 ExprList *pList; /* Function arguments or in "<expr> IN (<expr-list)" */
10603 #define EP_xIsSelect 0x0800 /* x.pSelect is valid (otherwise x.pList is) */
38229 static struct RowSetEntry *rowSetListToTree(struct RowSetEntry *pList){
38234 assert( pList!=0 );
38235 p = pList;
38236 pList = p->pRight;
38238 for(iDepth=1; pList; iDepth++){
38240 p = pList;
38241 pList = p->pRight;
38243 p->pRight = rowSetNDeepTree(&pList, iDepth);
41391 PgHdr *pList; /* List of dirty pages to revert */
41402 pList = sqlite3PcacheDirtyList(pPager->pPCache);
41403 while( pList && rc==SQLITE_OK ){
41404 PgHdr *pNext = pList->pDirty;
41405 rc = pagerUndoCallback((void *)pPager, pList->pgno);
41406 pList = pNext;
41414 ** the contents of the list of pages headed by pList (connected by pDirty),
41423 PgHdr *pList, /* List of frames to log */
41433 assert( pList );
41436 for(p=pList; p && p->pDirty; p=p->pDirty){
41447 PgHdr **ppNext = &pList;
41448 for(p=pList; (*ppNext = p); p=p->pDirty){
41451 assert( pList );
41454 if( pList->pgno==1 ) pager_write_changecounter(pList);
41456 pPager->pageSize, pList, nTruncate, isCommit, pPager->walSyncFlags
41460 for(p=pList; p; p=p->pDirty){
41466 pList = sqlite3PcacheDirtyList(pPager->pPCache);
41467 for(p=pList; p; p=p->pDirty){
42459 static int pager_write_pagelist(Pager *pPager, PgHdr *pList){
42486 while( rc==SQLITE_OK && pList ){
42487 Pgno pgno = pList->pgno;
42497 if( pgno<=pPager->dbSize && 0==(pList->flags&PGHDR_DONT_WRITE) ){
42501 assert( (pList->flags&PGHDR_NEED_SYNC)==0 );
42502 if( pList->pgno==1 ) pager_write_changecounter(pList);
42505 CODEC2(pPager, pList->pData, pgno, 6, return SQLITE_NOMEM, pData);
42522 sqlite3BackupUpdate(pPager->pBackup, pgno, (u8*)pList->pData);
42525 PAGERID(pPager), pgno, pager_pagehash(pList)));
42532 pager_set_pagehash(pList);
42533 pList = pList->pDirty;
44231 PgHdr *pList = sqlite3PcacheDirtyList(pPager->pPCache);
44233 if( pList==0 ){
44237 pList = pPageOne;
44238 pList->pDirty = 0;
44241 if( ALWAYS(pList) ){
44242 rc = pagerWalFrames(pPager, pList, pPager->dbSize, 1);
48072 PgHdr *pList, /* List of dirty pages to write */
48079 PgHdr *p; /* Iterator to run through pList with. */
48086 assert( pList );
48094 { int cnt; for(cnt=0, p=pList; p; p=p->pDirty, cnt++){}
48162 for(p=pList; p; p=p->pDirty){
48221 for(p=pList; p && rc==SQLITE_OK; p=p->pDirty){
51364 BtShared *pList;
51375 pList = GLOBAL(BtShared*,sqlite3SharedCacheList);
51376 while( ALWAYS(pList) && pList->pNext!=pBt ){
51377 pList=pList->pNext;
51379 if( ALWAYS(pList) ){
51380 pList->pNext = pBt->pNext;
73116 if( sqlite3WalkExprList(pWalker, pExpr->x.pList) ) return WRC_Abort;
73513 assert( pExpr->x.pList==0 );
73721 ExprList *pList = pExpr->x.pList; /* The argument list */
73722 int n = pList ? pList->nExpr : 0; /* Number of arguments */
73778 sqlite3WalkExprList(pWalker, pList);
74745 ** argument. An expression with no children, Expr.pList or
74757 heightOfExprList(p->x.pList, &nHeight);
74942 SQLITE_PRIVATE Expr *sqlite3ExprFunction(Parse *pParse, ExprList *pList, Token *pToken){
74948 sqlite3ExprListDelete(db, pList); /* Avoid memory leak when malloc fails */
74951 pNew->x.pList = pList;
75057 sqlite3ExprListDelete(db, p->x.pList);
75120 if( p->pLeft || p->pRight || p->pColl || p->x.pList ){
75153 ** descended from the Expr.x.pList or Expr.x.pSelect variables).
75227 /* Fill in the pNew->x.pSelect or pNew->x.pList member. */
75231 pNew->x.pList = sqlite3ExprListDup(db, p->x.pList, isReduced);
75408 ** Add a new element to the end of an expression list. If pList is
75417 ExprList *pList, /* List to which to append. Might be NULL */
75421 if( pList==0 ){
75422 pList = sqlite3DbMallocZero(db, sizeof(ExprList) );
75423 if( pList==0 ){
75426 pList->a = sqlite3DbMallocRaw(db, sizeof(pList->a[0]));
75427 if( pList->a==0 ) goto no_mem;
75428 }else if( (pList->nExpr & (pList->nExpr-1))==0 ){
75430 assert( pList->nExpr>0 );
75431 a = sqlite3DbRealloc(db, pList->a, pList->nExpr*2*sizeof(pList->a[0]));
75435 pList->a = a;
75437 assert( pList->a!=0 );
75439 struct ExprList_item *pItem = &pList->a[pList->nExpr++];
75443 return pList;
75448 sqlite3ExprListDelete(db, pList);
75456 ** pList might be NULL following an OOM error. But pName should never be
75462 ExprList *pList, /* List to which to add the span. */
75466 assert( pList!=0 || pParse->db->mallocFailed!=0 );
75467 if( pList ){
75469 assert( pList->nExpr>0 );
75470 pItem = &pList->a[pList->nExpr-1];
75481 ** pList might be NULL following an OOM error. But pSpan should never be
75487 ExprList *pList, /* List to which to add the span. */
75491 assert( pList!=0 || db->mallocFailed!=0 );
75492 if( pList ){
75493 struct ExprList_item *pItem = &pList->a[pList->nExpr-1];
75494 assert( pList->nExpr>0 );
75522 SQLITE_PRIVATE void sqlite3ExprListDelete(sqlite3 *db, ExprList *pList){
75525 if( pList==0 ) return;
75526 assert( pList->a!=0 || pList->nExpr==0 );
75527 for(pItem=pList->a, i=0; i<pList->nExpr; i++, pItem++){
75532 sqlite3DbFree(db, pList->a);
75533 sqlite3DbFree(db, pList);
76110 }else if( ALWAYS(pExpr->x.pList!=0) ){
76119 ExprList *pList = pExpr->x.pList;
76132 for(i=pList->nExpr, pItem=pList->a; i>0; i--, pItem++){
76991 pFarg = pExpr->x.pList;
77100 ** Y is stored in pExpr->pList->a[0].pExpr.
77101 ** Z is stored in pExpr->pList->a[1].pExpr.
77105 struct ExprList_item *pLItem = pExpr->x.pList->a;
77201 ** Ei is in pExpr->pList->a[i*2] and Ri is pExpr->pList->a[i*2+1].
77220 assert( !ExprHasProperty(pExpr, EP_xIsSelect) && pExpr->x.pList );
77221 assert((pExpr->x.pList->nExpr % 2) == 0);
77222 assert(pExpr->x.pList->nExpr > 0);
77223 pEList = pExpr->x.pList;
77503 pFarg = pExpr->x.pList;
77534 sqlite3ExplainExprList(pOut, pExpr->x.pList);
77549 ** Y is stored in pExpr->pList->a[0].pExpr.
77550 ** Z is stored in pExpr->pList->a[1].pExpr.
77554 Expr *pY = pExpr->x.pList->a[0].pExpr;
77555 Expr *pZ = pExpr->x.pList->a[1].pExpr;
77581 sqlite3ExplainExprList(pOut, pExpr->x.pList);
77616 SQLITE_PRIVATE void sqlite3ExplainExprList(Vdbe *pOut, ExprList *pList){
77618 if( pList==0 || pList->nExpr==0 ){
77621 }else if( pList->nExpr==1 ){
77622 sqlite3ExplainExpr(pOut, pList->a[0].pExpr);
77625 for(i=0; i<pList->nExpr; i++){
77628 sqlite3ExplainExpr(pOut, pList->a[i].pExpr);
77630 if( i<pList->nExpr-1 ){
77718 ExprList *pList = pExpr->x.pList;
77720 if( pList ){
77721 int i = pList->nExpr;
77722 struct ExprList_item *pItem = pList->a;
77778 ExprList *pList, /* The expression list to be coded */
77784 assert( pList!=0 );
77787 n = pList->nExpr;
77788 for(pItem=pList->a, i=0; i<n; i++, pItem++){
77831 compLeft.pRight = pExpr->x.pList->a[0].pExpr;
77834 compRight.pRight = pExpr->x.pList->a[1].pExpr;
78154 if( sqlite3ExprListCompare(pA->x.pList, pB->x.pList) ) return 2;
78337 pExpr->x.pList ? pExpr->x.pList->nExpr : 0, enc, 0);
78392 SQLITE_PRIVATE void sqlite3ExprAnalyzeAggList(NameContext *pNC, ExprList *pList){
78395 if( pList ){
78396 for(pItem=pList->a, i=0; i<pList->nExpr; i++, pItem++){
80880 SrcList *pList /* The Source list to check and modify */
80886 if( NEVER(pList==0) ) return 0;
80888 for(i=0, pItem=pList->a; i<pList->nSrc; i++, pItem++){
80935 if( sqlite3FixExprList(pFix, pExpr->x.pList) ) return 1;
80946 ExprList *pList /* The expression to be fixed to one database */
80950 if( pList==0 ) return 0;
80951 for(i=0, pItem=pList->a; i<pList->nExpr; i++, pItem++){
82350 ** Designate the PRIMARY KEY for the table. pList is a list of names
82351 ** of columns that form the primary key. If pList is NULL, then the
82369 ExprList *pList, /* List of field names to be indexed */
82384 if( pList==0 ){
82388 for(i=0; i<pList->nExpr; i++){
82390 if( sqlite3StrICmp(pList->a[i].zName, pTab->aCol[iCol].zName)==0 ){
82398 if( pList
82416 p = sqlite3CreateIndex(pParse, 0, 0, 0, pList, onError, 0, 0, sortOrder, 0);
82420 pList = 0;
82424 sqlite3ExprListDelete(pParse->db, pList);
83686 ** pList is a list of columns to be indexed. pList will be NULL if this
83699 ExprList *pList, /* A list of columns to be indexed */
83703 int sortOrder, /* Sort order of primary key when pList==NULL */
83719 struct ExprList_item *pListItem; /* For looping over pList */
83861 /* If pList==0, it means this routine was called to make a primary
83865 if( pList==0 ){
83868 pList = sqlite3ExprListAppend(pParse, 0, 0);
83869 if( pList==0 ) goto exit_create_index;
83870 sqlite3ExprListSetName(pParse, pList, &nullId, 0);
83871 pList->a[0].sortOrder = (u8)sortOrder;
83877 for(i=0; i<pList->nExpr; i++){
83878 Expr *pExpr = pList->a[i].pExpr;
83893 nCol = pList->nExpr;
83918 pIndex->nColumn = pList->nExpr;
83942 for(i=0, pListItem=pList->a; i<pList->nExpr; i++, pListItem++){
84165 sqlite3ExprListDelete(db, pList);
84320 SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3 *db, IdList *pList, Token *pToken){
84322 if( pList==0 ){
84323 pList = sqlite3DbMallocZero(db, sizeof(IdList) );
84324 if( pList==0 ) return 0;
84326 pList->a = sqlite3ArrayAllocate(
84328 pList->a,
84329 sizeof(pList->a[0]),
84330 &pList->nId,
84334 sqlite3IdListDelete(db, pList);
84337 pList->a[i].zName = sqlite3NameFromToken(db, pToken);
84338 return pList;
84344 SQLITE_PRIVATE void sqlite3IdListDelete(sqlite3 *db, IdList *pList){
84346 if( pList==0 ) return;
84347 for(i=0; i<pList->nId; i++){
84348 sqlite3DbFree(db, pList->a[i].zName);
84350 sqlite3DbFree(db, pList->a);
84351 sqlite3DbFree(db, pList);
84355 ** Return the index in pList of the identifier named zId. Return -1
84358 SQLITE_PRIVATE int sqlite3IdListIndex(IdList *pList, const char *zName){
84360 if( pList==0 ) return -1;
84361 for(i=0; i<pList->nId; i++){
84362 if( sqlite3StrICmp(pList->a[i].zName, zName)==0 ) return i;
84440 ** a new one. If an OOM error does occurs, then the prior value of pList
84470 SrcList *pList, /* Append to this SrcList. NULL creates a new SrcList */
84476 if( pList==0 ){
84477 pList = sqlite3DbMallocZero(db, sizeof(SrcList) );
84478 if( pList==0 ) return 0;
84479 pList->nAlloc = 1;
84481 pList = sqlite3SrcListEnlarge(db, pList, 1, pList->nSrc);
84483 sqlite3SrcListDelete(db, pList);
84486 pItem = &pList->a[pList->nSrc-1];
84497 return pList;
84503 SQLITE_PRIVATE void sqlite3SrcListAssignCursors(Parse *pParse, SrcList *pList){
84506 assert(pList || pParse->db->mallocFailed );
84507 if( pList ){
84508 for(i=0, pItem=pList->a; i<pList->nSrc; i++, pItem++){
84521 SQLITE_PRIVATE void sqlite3SrcListDelete(sqlite3 *db, SrcList *pList){
84524 if( pList==0 ) return;
84525 for(pItem=pList->a, i=0; i<pList->nSrc; i++, pItem++){
84535 sqlite3DbFree(db, pList);
87650 || !pExpr->x.pList
87651 || pExpr->x.pList->nExpr!=2
88768 ExprList *pList = 0; /* Changes list if ON UPDATE CASCADE */
88841 pList = sqlite3ExprListAppend(pParse, pList, pNew);
88842 sqlite3ExprListSetName(pParse, pList, &tFromCol, 0);
88885 pStep->pExprList = sqlite3ExprListDup(db, pList, EXPRDUP_REDUCE);
88898 sqlite3ExprListDelete(db, pList);
89340 ** The pList parameter holds EXPRLIST in the first form of the INSERT
89341 ** statement above, and pSelect is NULL. For the second form, pList is
89435 ExprList *pList, /* List of values to be inserted */
89553 assert( pList==0 );
89672 nColumn = pList ? pList->nExpr : 0;
89674 if( sqlite3ResolveExprNames(&sNC, pList->a[i].pExpr) ){
89825 sqlite3ExprCode(pParse, pList->a[keyColumn].pExpr, regCols);
89848 if( (!useTempTable && !pList) || (pColumn && j>=pColumn->nId) ){
89854 sqlite3ExprCodeAndCache(pParse, pList->a[j].pExpr, regCols+i+1);
89892 sqlite3ExprCode(pParse, pList->a[keyColumn].pExpr, regRowid);
89959 sqlite3ExprCode(pParse, pList->a[j].pExpr, iRegStore);
90042 sqlite3ExprListDelete(db, pList);
94926 IdList *pList = pRight->pUsing;
94927 for(j=0; j<pList->nId; j++){
94933 zName = pList->a[j].zName;
95295 static KeyInfo *keyInfoFromExprList(Parse *pParse, ExprList *pList){
95302 nExpr = pList->nExpr;
95309 for(i=0, pItem=pList->a; i<nExpr; i++, pItem++){
97088 substExprList(db, pExpr->x.pList, iTable, pEList);
97095 ExprList *pList, /* List to scan and in which to make substitutes */
97100 if( pList==0 ) return;
97101 for(i=0; i<pList->nExpr; i++){
97102 pList->a[i].pExpr = substExpr(db, pList->a[i].pExpr, iTable, pEList);
97260 ExprList *pList; /* The result set of the outer query */
97555 pList = pParent->pEList;
97556 for(i=0; i<pList->nExpr; i++){
97557 if( pList->a[i].zName==0 ){
97558 const char *zSpan = pList->a[i].zSpan;
97560 pList->a[i].zName = sqlite3DbStrDup(db, zSpan);
97640 pEList = pExpr->x.pList;
98100 if( pE->x.pList==0 || pE->x.pList->nExpr!=1 ){
98105 KeyInfo *pKeyInfo = keyInfoFromExprList(pParse, pE->x.pList);
98122 ExprList *pList = pF->pExpr->x.pList;
98124 sqlite3VdbeAddOp4(v, OP_AggFinal, pF->iMem, pList ? pList->nExpr : 0, 0,
98147 ExprList *pList = pF->pExpr->x.pList;
98149 if( pList ){
98150 nArg = pList->nExpr;
98152 sqlite3ExprCodeExprList(pParse, pList, regAgg, 1);
98166 assert( pList!=0 ); /* pList!=0 if pF->pFunc has NEEDCOLL */
98167 for(j=0, pItem=pList->a; !pColl && j<nArg; j++, pItem++){
98670 sqlite3ExprAnalyzeAggList(&sNC, sAggInfo.aFunc[i].pExpr->x.pList);
98979 pMinMax = sqlite3ExprListDup(db, p->pEList->a[0].pExpr->x.pList,0);
99399 Trigger *pList = 0; /* List of triggers to return */
99413 pTrig->pNext = (pList ? pList : pTab->pTrigger);
99414 pList = pTrig;
99419 return (pList ? pList : pTab->pTrigger);
100001 Trigger *pList = 0;
100005 pList = sqlite3TriggerList(pParse, pTab);
100007 assert( pList==0 || IsVirtual(pTab)==0 );
100008 for(p=pList; p; p=p->pNext){
100016 return (mask ? pList : 0);
103034 mask |= exprListTableUsage(pMaskSet, p->x.pList);
103038 static Bitmask exprListTableUsage(WhereMaskSet *pMaskSet, ExprList *pList){
103041 if( pList ){
103042 for(i=0; i<pList->nExpr; i++){
103043 mask |= exprTableUsage(pMaskSet, pList->a[i].pExpr);
103241 ExprList *pList; /* List of operands to the LIKE operator */
103255 pList = pExpr->x.pList;
103256 pLeft = pList->a[1].pExpr;
103264 pRight = pList->a[0].pExpr;
103330 ExprList *pList;
103338 pList = pExpr->x.pList;
103339 if( pList->nExpr!=2 ){
103342 if( pList->a[1].pExpr->op != TK_COLUMN ){
103633 ExprList *pList = 0; /* The RHS of the IN operator */
103643 pList = sqlite3ExprListAppend(pWC->pParse, pList, pDup);
103653 pNew->x.pList = pList;
103661 sqlite3ExprListDelete(db, pList);
103719 pTerm->prereqRight = exprListTableUsage(pMaskSet, pExpr->x.pList);
103794 ExprList *pList = pExpr->x.pList;
103797 assert( pList!=0 );
103798 assert( pList->nExpr==2 );
103804 sqlite3ExprDup(db, pList->a[i].pExpr, 0), 0);
103848 pLeft = pExpr->x.pList->a[1].pExpr;
103903 pRight = pExpr->x.pList->a[0].pExpr;
103904 pLeft = pExpr->x.pList->a[1].pExpr;
103975 ** Return TRUE if any of the expressions in pList->a[iFirst...] contain
103979 ExprList *pList, /* Search expressions in ths list */
103985 while( iFirst<pList->nExpr ){
103986 if( (exprTableUsage(pMaskSet, pList->a[iFirst++].pExpr)&allowed)!=0 ){
104000 ** If such an expression is found, its index in pList->a[] is returned. If
104005 ExprList *pList, /* Expression list to search */
104013 for(i=0; i<pList->nExpr; i++){
104014 Expr *p = pList->a[i].pExpr;
105389 ExprList *pList, /* The value list on the RHS of "x IN (v1,v2,v3,...)" */
105398 for(i=0; rc==SQLITE_OK && i<pList->nExpr; i++){
105400 rc = whereEqualScanEst(pParse, p, pList->a[i].pExpr, &nEst);
105609 }else if( ALWAYS(pExpr->x.pList && pExpr->x.pList->nExpr) ){
105611 nInMul *= pExpr->x.pList->nExpr;
105727 whereInScanEst(pParse, pProbe, pFirstTerm->pExpr->x.pList, &nRow);
107890 ExprList *pList;
109277 sqlite3ExprListDelete(pParse->db, (yypminor->yy487).pList);
110410 {sqlite3Insert(pParse, yymsp[-2].minor.yy347, yymsp[0].minor.yy487.pList, yymsp[0].minor.yy487.pSelect, yymsp[-1].minor.yy180, yymsp[-4].minor.yy258);}
110426 yygotominor.yy487.pList = yymsp[-1].minor.yy442;
110433 if( yymsp[-4].minor.yy487.pList ){
110434 yymsp[-4].minor.yy487.pSelect = sqlite3SelectNew(pParse, yymsp[-4].minor.yy487.pList, 0, 0, 0, 0, 0, 0, 0, 0);
110435 yymsp[-4].minor.yy487.pList = 0;
110437 yygotominor.yy487.pList = 0;
110574 ExprList *pList;
110575 pList = sqlite3ExprListAppend(pParse,0, yymsp[0].minor.yy342.pExpr);
110576 pList = sqlite3ExprListAppend(pParse,pList, yymsp[-2].minor.yy342.pExpr);
110577 yygotominor.yy342.pExpr = sqlite3ExprFunction(pParse, pList, &yymsp[-1].minor.yy318.eOperator);
110586 ExprList *pList;
110587 pList = sqlite3ExprListAppend(pParse,0, yymsp[-2].minor.yy342.pExpr);
110588 pList = sqlite3ExprListAppend(pParse,pList, yymsp[-4].minor.yy342.pExpr);
110589 pList = sqlite3ExprListAppend(pParse,pList, yymsp[0].minor.yy342.pExpr);
110590 yygotominor.yy342.pExpr = sqlite3ExprFunction(pParse, pList, &yymsp[-3].minor.yy318.eOperator);
110627 ExprList *pList = sqlite3ExprListAppend(pParse,0, yymsp[-2].minor.yy342.pExpr);
110628 pList = sqlite3ExprListAppend(pParse,pList, yymsp[0].minor.yy342.pExpr);
110631 yygotominor.yy342.pExpr->x.pList = pList;
110633 sqlite3ExprListDelete(pParse->db, pList);
110656 yygotominor.yy342.pExpr->x.pList = yymsp[-1].minor.yy442;
110730 yygotominor.yy342.pExpr->x.pList = yymsp[-2].minor.yy442;
110902 {yygotominor.yy327 = sqlite3TriggerInsertStep(pParse->db, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy180, yymsp[0].minor.yy487.pList, yymsp[0].minor.yy487.pSelect, yymsp[-4].minor.yy258);}
116738 sqlite3_int64 iDocid; /* Current docid (if pList!=0) */
116739 int bFreeList; /* True if pList should be sqlite3_free()d */
116740 char *pList; /* Pointer to position list following iDocid */
119073 ** Argument pList points to a position list nList bytes in size. This
119077 ** of the entries from pList at position 0, and terminated by an 0x00 byte.
119082 char *pList, /* Position list (no 0x00 term) */
119083 int nList, /* Size of pList in bytes */
119088 char *p = pList;
119089 char *pEnd = &pList[nList];
120320 ** Arguments pList/nList contain the doclist for token iToken of phrase p.
120323 ** This function assumes that pList points to a buffer allocated using
120329 Fts3Phrase *p, /* Phrase to merge pList/nList into */
120330 int iToken, /* Token pList/nList corresponds to */
120331 char *pList, /* Pointer to doclist */
120332 int nList /* Number of bytes in pList */
120336 if( pList==0 ){
120343 p->doclist.aAll = pList;
120348 sqlite3_free(pList);
120361 pRight = pList;
120367 pLeft = pList;
120418 ** means that the phrase does not appear in the current row, doclist.pList
120436 char *pList;
120438 int rc = sqlite3Fts3DeferredTokenList(pDeferred, &pList, &nList);
120441 if( pList==0 ){
120443 pPhrase->doclist.pList = 0;
120448 aPoslist = pList;
120452 char *aOut = pList;
120459 aPoslist = pList;
120463 pPhrase->doclist.pList = 0;
120475 pPhrase->doclist.pList = aPoslist;
120487 p2 = pPhrase->doclist.pList;
120490 p1 = pPhrase->doclist.pList;
120501 pPhrase->doclist.pList = aOut;
120504 pPhrase->doclist.nList = (int)(aOut - pPhrase->doclist.pList);
120507 pPhrase->doclist.pList = 0;
120642 &pDL->iDocid, &pDL->pList, &pDL->nList
120644 if( rc==SQLITE_OK && !pDL->pList ){
120651 pDL->pList = pDL->pNextDocid;
120672 pDL->pList = pIter;
120674 pDL->nList = (int)(pIter - pDL->pList);
120974 char *pList = 0;
120975 rc = fts3TermSelect(pTab, pToken, pTC->iCol, &nList, &pList);
120976 assert( rc==SQLITE_OK || pList==0 );
120979 fts3EvalPhraseMergeToken(pTab, pTC->pPhrase, pTC->iToken,pList,nList);
121055 sqlite3_free(pPhrase->doclist.pList);
121057 pPhrase->doclist.pList = 0;
121098 assert( pPhrase->doclist.pList );
121100 p2 = pOut = pPhrase->doclist.pList;
121105 nNew = (int)(pOut - pPhrase->doclist.pList) - 1;
121106 assert( pPhrase->doclist.pList[nNew]=='\0' );
121108 memset(&pPhrase->doclist.pList[nNew], 0, pPhrase->doclist.nList - nNew);
121110 *paPoslist = pPhrase->doclist.pList;
121134 ** FTs3Expr.pPhrase->doclist.nList (length of pList in bytes)
121135 ** FTs3Expr.pPhrase->doclist.pList (pointer to position list)
121274 ** (Fts3Expr->pPhrase.doclist.pList/nList) for each phrase in the expression.
121325 char *aPoslist = p->pPhrase->doclist.pList;
121334 aPoslist = pExpr->pRight->pPhrase->doclist.pList;
121437 bHit = (pPhrase->doclist.pList!=0);
121569 ** found in Fts3Expr.pPhrase->doclist.pList for each of the phrase
121575 if( pPhrase && pPhrase->doclist.pList ){
121577 char *p = pPhrase->doclist.pList;
121782 char *pIter = pPhrase->doclist.pList;
125194 PendingList *pList; /* Doclist is assembled here */
125742 static void fts3PendingListDelete(PendingList *pList){
125743 sqlite3_free(pList);
125757 PendingList *pList;
125760 pList = (PendingList *)fts3HashFind(pHash, zToken, nToken);
125761 if( pList ){
125762 p->nPendingData -= (pList->nData + nToken + sizeof(Fts3HashElem));
125764 if( fts3PendingListAppend(&pList, p->iPrevDocid, iCol, iPos, &rc) ){
125765 if( pList==fts3HashInsert(pHash, zToken, nToken, pList) ){
125770 sqlite3_free(pList);
125775 p->nPendingData += (pList->nData + nToken + sizeof(Fts3HashElem));
125899 PendingList *pList = (PendingList *)fts3HashData(pElem);
125900 fts3PendingListDelete(pList);
126317 PendingList *pList = (PendingList *)fts3HashData(pElem);
126320 pReader->nNode = pReader->nDoclist = pList->nData + 1;
126321 pReader->aNode = pReader->aDoclist = pList->aData;
127475 char *pList = *ppList;
127477 char *pEnd = &pList[nList];
127479 char *p = pList;
127487 nList = (int)(p - pList);
127491 nList -= (int)(p - pList);
127492 pList = p;
127496 p = &pList[1];
127500 *ppList = pList;
127513 char *pList,
127524 memcpy(pMsr->aBuffer, pList, nList);
127555 char *pList;
127560 rc = fts3SegReaderNextDocid(p, apSegment[0], &pList, &nList);
127574 fts3ColumnFilter(pMsr->iColFilter, &pList, &nList);
127579 rc = fts3MsrBufferData(pMsr, pList, nList+1);
127584 *paPoslist = pList;
127813 char *pList;
127817 fts3SegReaderNextDocid(p, apSegment[0], &pList, &nList);
127828 fts3ColumnFilter(pFilter->iCol, &pList, &nList);
127859 nWrite = sqlite3Fts3FirstFilter(iDelta, pList, nList, a);
127868 memcpy(&pCsr->aBuffer[nDoclist], pList, nList);
128317 fts3PendingListDelete(pDef->pList);
128318 pDef->pList = 0;
128331 fts3PendingListDelete(pDef->pList);
128378 fts3PendingListAppend(&pDef->pList, iDocid, i, iPos, &rc);
128387 if( pDef->pList ){
128388 rc = fts3PendingListAppendVarint(&pDef->pList, 0);
128408 if( p->pList==0 ){
128412 pRet = (char *)sqlite3_malloc(p->pList->nData);
128415 nSkip = sqlite3Fts3GetVarint(p->pList->aData, &dummy);
128416 *pnData = p->pList->nData - nSkip;
128419 memcpy(pRet, &p->pList->aData[nSkip], *pnData);
128723 char *pList; /* Pointer to start of phrase position list */
129025 pPhrase->pList = pCsr;
129033 assert( pPhrase->pList==0 && pPhrase->pHead==0 && pPhrase->pTail==0 );
129935 char *pList; /* Position-list */
129936 int iPos; /* Position just read from pList */
129955 char *pList; /* Pointer to position list for phrase */
129959 pList = sqlite3Fts3EvalPhrasePoslist(p->pCsr, pExpr, p->iCol);
129961 if( pList ){
129962 fts3GetDeltaPosition(&pList, &iPos);
129969 pT->pList = pList;
130063 if( pT->pList && (pT->iPos-pT->iOff)<iMinPos ){
130074 if( 0==(0xFE&*pTerm->pList) ){
130075 pTerm->pList = 0;
130077 fts3GetDeltaPosition(&pTerm->pList, &pTerm->iPos);