Home | History | Annotate | Download | only in orig

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) */
38201 static struct RowSetEntry *rowSetListToTree(struct RowSetEntry *pList){
38206 assert( pList!=0 );
38207 p = pList;
38208 pList = p->pRight;
38210 for(iDepth=1; pList; iDepth++){
38212 p = pList;
38213 pList = p->pRight;
38215 p->pRight = rowSetNDeepTree(&pList, iDepth);
41363 PgHdr *pList; /* List of dirty pages to revert */
41374 pList = sqlite3PcacheDirtyList(pPager->pPCache);
41375 while( pList && rc==SQLITE_OK ){
41376 PgHdr *pNext = pList->pDirty;
41377 rc = pagerUndoCallback((void *)pPager, pList->pgno);
41378 pList = pNext;
41386 ** the contents of the list of pages headed by pList (connected by pDirty),
41395 PgHdr *pList, /* List of frames to log */
41405 assert( pList );
41408 for(p=pList; p && p->pDirty; p=p->pDirty){
41419 PgHdr **ppNext = &pList;
41420 for(p=pList; (*ppNext = p); p=p->pDirty){
41423 assert( pList );
41426 if( pList->pgno==1 ) pager_write_changecounter(pList);
41428 pPager->pageSize, pList, nTruncate, isCommit, pPager->walSyncFlags
41432 for(p=pList; p; p=p->pDirty){
41438 pList = sqlite3PcacheDirtyList(pPager->pPCache);
41439 for(p=pList; p; p=p->pDirty){
42431 static int pager_write_pagelist(Pager *pPager, PgHdr *pList){
42458 while( rc==SQLITE_OK && pList ){
42459 Pgno pgno = pList->pgno;
42469 if( pgno<=pPager->dbSize && 0==(pList->flags&PGHDR_DONT_WRITE) ){
42473 assert( (pList->flags&PGHDR_NEED_SYNC)==0 );
42474 if( pList->pgno==1 ) pager_write_changecounter(pList);
42477 CODEC2(pPager, pList->pData, pgno, 6, return SQLITE_NOMEM, pData);
42494 sqlite3BackupUpdate(pPager->pBackup, pgno, (u8*)pList->pData);
42497 PAGERID(pPager), pgno, pager_pagehash(pList)));
42504 pager_set_pagehash(pList);
42505 pList = pList->pDirty;
44203 PgHdr *pList = sqlite3PcacheDirtyList(pPager->pPCache);
44205 if( pList==0 ){
44209 pList = pPageOne;
44210 pList->pDirty = 0;
44213 if( ALWAYS(pList) ){
44214 rc = pagerWalFrames(pPager, pList, pPager->dbSize, 1);
48044 PgHdr *pList, /* List of dirty pages to write */
48051 PgHdr *p; /* Iterator to run through pList with. */
48058 assert( pList );
48066 { int cnt; for(cnt=0, p=pList; p; p=p->pDirty, cnt++){}
48134 for(p=pList; p; p=p->pDirty){
48193 for(p=pList; p && rc==SQLITE_OK; p=p->pDirty){
51336 BtShared *pList;
51347 pList = GLOBAL(BtShared*,sqlite3SharedCacheList);
51348 while( ALWAYS(pList) && pList->pNext!=pBt ){
51349 pList=pList->pNext;
51351 if( ALWAYS(pList) ){
51352 pList->pNext = pBt->pNext;
73080 if( sqlite3WalkExprList(pWalker, pExpr->x.pList) ) return WRC_Abort;
73477 assert( pExpr->x.pList==0 );
73685 ExprList *pList = pExpr->x.pList; /* The argument list */
73686 int n = pList ? pList->nExpr : 0; /* Number of arguments */
73742 sqlite3WalkExprList(pWalker, pList);
74709 ** argument. An expression with no children, Expr.pList or
74721 heightOfExprList(p->x.pList, &nHeight);
74906 SQLITE_PRIVATE Expr *sqlite3ExprFunction(Parse *pParse, ExprList *pList, Token *pToken){
74912 sqlite3ExprListDelete(db, pList); /* Avoid memory leak when malloc fails */
74915 pNew->x.pList = pList;
75021 sqlite3ExprListDelete(db, p->x.pList);
75084 if( p->pLeft || p->pRight || p->pColl || p->x.pList ){
75117 ** descended from the Expr.x.pList or Expr.x.pSelect variables).
75191 /* Fill in the pNew->x.pSelect or pNew->x.pList member. */
75195 pNew->x.pList = sqlite3ExprListDup(db, p->x.pList, isReduced);
75372 ** Add a new element to the end of an expression list. If pList is
75381 ExprList *pList, /* List to which to append. Might be NULL */
75385 if( pList==0 ){
75386 pList = sqlite3DbMallocZero(db, sizeof(ExprList) );
75387 if( pList==0 ){
75390 pList->a = sqlite3DbMallocRaw(db, sizeof(pList->a[0]));
75391 if( pList->a==0 ) goto no_mem;
75392 }else if( (pList->nExpr & (pList->nExpr-1))==0 ){
75394 assert( pList->nExpr>0 );
75395 a = sqlite3DbRealloc(db, pList->a, pList->nExpr*2*sizeof(pList->a[0]));
75399 pList->a = a;
75401 assert( pList->a!=0 );
75403 struct ExprList_item *pItem = &pList->a[pList->nExpr++];
75407 return pList;
75412 sqlite3ExprListDelete(db, pList);
75420 ** pList might be NULL following an OOM error. But pName should never be
75426 ExprList *pList, /* List to which to add the span. */
75430 assert( pList!=0 || pParse->db->mallocFailed!=0 );
75431 if( pList ){
75433 assert( pList->nExpr>0 );
75434 pItem = &pList->a[pList->nExpr-1];
75445 ** pList might be NULL following an OOM error. But pSpan should never be
75451 ExprList *pList, /* List to which to add the span. */
75455 assert( pList!=0 || db->mallocFailed!=0 );
75456 if( pList ){
75457 struct ExprList_item *pItem = &pList->a[pList->nExpr-1];
75458 assert( pList->nExpr>0 );
75486 SQLITE_PRIVATE void sqlite3ExprListDelete(sqlite3 *db, ExprList *pList){
75489 if( pList==0 ) return;
75490 assert( pList->a!=0 || pList->nExpr==0 );
75491 for(pItem=pList->a, i=0; i<pList->nExpr; i++, pItem++){
75496 sqlite3DbFree(db, pList->a);
75497 sqlite3DbFree(db, pList);
76074 }else if( ALWAYS(pExpr->x.pList!=0) ){
76083 ExprList *pList = pExpr->x.pList;
76096 for(i=pList->nExpr, pItem=pList->a; i>0; i--, pItem++){
76955 pFarg = pExpr->x.pList;
77064 ** Y is stored in pExpr->pList->a[0].pExpr.
77065 ** Z is stored in pExpr->pList->a[1].pExpr.
77069 struct ExprList_item *pLItem = pExpr->x.pList->a;
77165 ** Ei is in pExpr->pList->a[i*2] and Ri is pExpr->pList->a[i*2+1].
77184 assert( !ExprHasProperty(pExpr, EP_xIsSelect) && pExpr->x.pList );
77185 assert((pExpr->x.pList->nExpr % 2) == 0);
77186 assert(pExpr->x.pList->nExpr > 0);
77187 pEList = pExpr->x.pList;
77467 pFarg = pExpr->x.pList;
77498 sqlite3ExplainExprList(pOut, pExpr->x.pList);
77513 ** Y is stored in pExpr->pList->a[0].pExpr.
77514 ** Z is stored in pExpr->pList->a[1].pExpr.
77518 Expr *pY = pExpr->x.pList->a[0].pExpr;
77519 Expr *pZ = pExpr->x.pList->a[1].pExpr;
77545 sqlite3ExplainExprList(pOut, pExpr->x.pList);
77580 SQLITE_PRIVATE void sqlite3ExplainExprList(Vdbe *pOut, ExprList *pList){
77582 if( pList==0 || pList->nExpr==0 ){
77585 }else if( pList->nExpr==1 ){
77586 sqlite3ExplainExpr(pOut, pList->a[0].pExpr);
77589 for(i=0; i<pList->nExpr; i++){
77592 sqlite3ExplainExpr(pOut, pList->a[i].pExpr);
77594 if( i<pList->nExpr-1 ){
77682 ExprList *pList = pExpr->x.pList;
77684 if( pList ){
77685 int i = pList->nExpr;
77686 struct ExprList_item *pItem = pList->a;
77742 ExprList *pList, /* The expression list to be coded */
77748 assert( pList!=0 );
77751 n = pList->nExpr;
77752 for(pItem=pList->a, i=0; i<n; i++, pItem++){
77795 compLeft.pRight = pExpr->x.pList->a[0].pExpr;
77798 compRight.pRight = pExpr->x.pList->a[1].pExpr;
78118 if( sqlite3ExprListCompare(pA->x.pList, pB->x.pList) ) return 2;
78301 pExpr->x.pList ? pExpr->x.pList->nExpr : 0, enc, 0);
78356 SQLITE_PRIVATE void sqlite3ExprAnalyzeAggList(NameContext *pNC, ExprList *pList){
78359 if( pList ){
78360 for(pItem=pList->a, i=0; i<pList->nExpr; i++, pItem++){
80844 SrcList *pList /* The Source list to check and modify */
80850 if( NEVER(pList==0) ) return 0;
80852 for(i=0, pItem=pList->a; i<pList->nSrc; i++, pItem++){
80899 if( sqlite3FixExprList(pFix, pExpr->x.pList) ) return 1;
80910 ExprList *pList /* The expression to be fixed to one database */
80914 if( pList==0 ) return 0;
80915 for(i=0, pItem=pList->a; i<pList->nExpr; i++, pItem++){
82314 ** Designate the PRIMARY KEY for the table. pList is a list of names
82315 ** of columns that form the primary key. If pList is NULL, then the
82333 ExprList *pList, /* List of field names to be indexed */
82348 if( pList==0 ){
82352 for(i=0; i<pList->nExpr; i++){
82354 if( sqlite3StrICmp(pList->a[i].zName, pTab->aCol[iCol].zName)==0 ){
82362 if( pList->nExpr>1 ) iCol = -1;
82380 p = sqlite3CreateIndex(pParse, 0, 0, 0, pList, onError, 0, 0, sortOrder, 0);
82384 pList = 0;
82388 sqlite3ExprListDelete(pParse->db, pList);
83650 ** pList is a list of columns to be indexed. pList will be NULL if this
83663 ExprList *pList, /* A list of columns to be indexed */
83667 int sortOrder, /* Sort order of primary key when pList==NULL */
83683 struct ExprList_item *pListItem; /* For looping over pList */
83825 /* If pList==0, it means this routine was called to make a primary
83829 if( pList==0 ){
83832 pList = sqlite3ExprListAppend(pParse, 0, 0);
83833 if( pList==0 ) goto exit_create_index;
83834 sqlite3ExprListSetName(pParse, pList, &nullId, 0);
83835 pList->a[0].sortOrder = (u8)sortOrder;
83841 for(i=0; i<pList->nExpr; i++){
83842 Expr *pExpr = pList->a[i].pExpr;
83857 nCol = pList->nExpr;
83882 pIndex->nColumn = pList->nExpr;
83906 for(i=0, pListItem=pList->a; i<pList->nExpr; i++, pListItem++){
84129 sqlite3ExprListDelete(db, pList);
84284 SQLITE_PRIVATE IdList *sqlite3IdListAppend(sqlite3 *db, IdList *pList, Token *pToken){
84286 if( pList==0 ){
84287 pList = sqlite3DbMallocZero(db, sizeof(IdList) );
84288 if( pList==0 ) return 0;
84290 pList->a = sqlite3ArrayAllocate(
84292 pList->a,
84293 sizeof(pList->a[0]),
84294 &pList->nId,
84298 sqlite3IdListDelete(db, pList);
84301 pList->a[i].zName = sqlite3NameFromToken(db, pToken);
84302 return pList;
84308 SQLITE_PRIVATE void sqlite3IdListDelete(sqlite3 *db, IdList *pList){
84310 if( pList==0 ) return;
84311 for(i=0; i<pList->nId; i++){
84312 sqlite3DbFree(db, pList->a[i].zName);
84314 sqlite3DbFree(db, pList->a);
84315 sqlite3DbFree(db, pList);
84319 ** Return the index in pList of the identifier named zId. Return -1
84322 SQLITE_PRIVATE int sqlite3IdListIndex(IdList *pList, const char *zName){
84324 if( pList==0 ) return -1;
84325 for(i=0; i<pList->nId; i++){
84326 if( sqlite3StrICmp(pList->a[i].zName, zName)==0 ) return i;
84404 ** a new one. If an OOM error does occurs, then the prior value of pList
84434 SrcList *pList, /* Append to this SrcList. NULL creates a new SrcList */
84440 if( pList==0 ){
84441 pList = sqlite3DbMallocZero(db, sizeof(SrcList) );
84442 if( pList==0 ) return 0;
84443 pList->nAlloc = 1;
84445 pList = sqlite3SrcListEnlarge(db, pList, 1, pList->nSrc);
84447 sqlite3SrcListDelete(db, pList);
84450 pItem = &pList->a[pList->nSrc-1];
84461 return pList;
84467 SQLITE_PRIVATE void sqlite3SrcListAssignCursors(Parse *pParse, SrcList *pList){
84470 assert(pList || pParse->db->mallocFailed );
84471 if( pList ){
84472 for(i=0, pItem=pList->a; i<pList->nSrc; i++, pItem++){
84485 SQLITE_PRIVATE void sqlite3SrcListDelete(sqlite3 *db, SrcList *pList){
84488 if( pList==0 ) return;
84489 for(pItem=pList->a, i=0; i<pList->nSrc; i++, pItem++){
84499 sqlite3DbFree(db, pList);
87614 || !pExpr->x.pList
87615 || pExpr->x.pList->nExpr!=2
88732 ExprList *pList = 0; /* Changes list if ON UPDATE CASCADE */
88805 pList = sqlite3ExprListAppend(pParse, pList, pNew);
88806 sqlite3ExprListSetName(pParse, pList, &tFromCol, 0);
88849 pStep->pExprList = sqlite3ExprListDup(db, pList, EXPRDUP_REDUCE);
88862 sqlite3ExprListDelete(db, pList);
89304 ** The pList parameter holds EXPRLIST in the first form of the INSERT
89305 ** statement above, and pSelect is NULL. For the second form, pList is
89399 ExprList *pList, /* List of values to be inserted */
89517 assert( pList==0 );
89636 nColumn = pList ? pList->nExpr : 0;
89638 if( sqlite3ResolveExprNames(&sNC, pList->a[i].pExpr) ){
89789 sqlite3ExprCode(pParse, pList->a[keyColumn].pExpr, regCols);
89812 if( (!useTempTable && !pList) || (pColumn && j>=pColumn->nId) ){
89818 sqlite3ExprCodeAndCache(pParse, pList->a[j].pExpr, regCols+i+1);
89856 sqlite3ExprCode(pParse, pList->a[keyColumn].pExpr, regRowid);
89923 sqlite3ExprCode(pParse, pList->a[j].pExpr, iRegStore);
90006 sqlite3ExprListDelete(db, pList);
94890 IdList *pList = pRight->pUsing;
94891 for(j=0; j<pList->nId; j++){
94897 zName = pList->a[j].zName;
95259 static KeyInfo *keyInfoFromExprList(Parse *pParse, ExprList *pList){
95266 nExpr = pList->nExpr;
95273 for(i=0, pItem=pList->a; i<nExpr; i++, pItem++){
97052 substExprList(db, pExpr->x.pList, iTable, pEList);
97059 ExprList *pList, /* List to scan and in which to make substitutes */
97064 if( pList==0 ) return;
97065 for(i=0; i<pList->nExpr; i++){
97066 pList->a[i].pExpr = substExpr(db, pList->a[i].pExpr, iTable, pEList);
97224 ExprList *pList; /* The result set of the outer query */
97519 pList = pParent->pEList;
97520 for(i=0; i<pList->nExpr; i++){
97521 if( pList->a[i].zName==0 ){
97522 const char *zSpan = pList->a[i].zSpan;
97524 pList->a[i].zName = sqlite3DbStrDup(db, zSpan);
97604 pEList = pExpr->x.pList;
98064 if( pE->x.pList==0 || pE->x.pList->nExpr!=1 ){
98069 KeyInfo *pKeyInfo = keyInfoFromExprList(pParse, pE->x.pList);
98086 ExprList *pList = pF->pExpr->x.pList;
98088 sqlite3VdbeAddOp4(v, OP_AggFinal, pF->iMem, pList ? pList->nExpr : 0, 0,
98111 ExprList *pList = pF->pExpr->x.pList;
98113 if( pList ){
98114 nArg = pList->nExpr;
98116 sqlite3ExprCodeExprList(pParse, pList, regAgg, 1);
98130 assert( pList!=0 ); /* pList!=0 if pF->pFunc has NEEDCOLL */
98131 for(j=0, pItem=pList->a; !pColl && j<nArg; j++, pItem++){
98634 sqlite3ExprAnalyzeAggList(&sNC, sAggInfo.aFunc[i].pExpr->x.pList);
98943 pMinMax = sqlite3ExprListDup(db, p->pEList->a[0].pExpr->x.pList,0);
99363 Trigger *pList = 0; /* List of triggers to return */
99377 pTrig->pNext = (pList ? pList : pTab->pTrigger);
99378 pList = pTrig;
99383 return (pList ? pList : pTab->pTrigger);
99965 Trigger *pList = 0;
99969 pList = sqlite3TriggerList(pParse, pTab);
99971 assert( pList==0 || IsVirtual(pTab)==0 );
99972 for(p=pList; p; p=p->pNext){
99980 return (mask ? pList : 0);
102998 mask |= exprListTableUsage(pMaskSet, p->x.pList);
103002 static Bitmask exprListTableUsage(WhereMaskSet *pMaskSet, ExprList *pList){
103005 if( pList ){
103006 for(i=0; i<pList->nExpr; i++){
103007 mask |= exprTableUsage(pMaskSet, pList->a[i].pExpr);
103205 ExprList *pList; /* List of operands to the LIKE operator */
103219 pList = pExpr->x.pList;
103220 pLeft = pList->a[1].pExpr;
103228 pRight = pList->a[0].pExpr;
103294 ExprList *pList;
103302 pList = pExpr->x.pList;
103303 if( pList->nExpr!=2 ){
103306 if( pList->a[1].pExpr->op != TK_COLUMN ){
103597 ExprList *pList = 0; /* The RHS of the IN operator */
103607 pList = sqlite3ExprListAppend(pWC->pParse, pList, pDup);
103617 pNew->x.pList = pList;
103625 sqlite3ExprListDelete(db, pList);
103683 pTerm->prereqRight = exprListTableUsage(pMaskSet, pExpr->x.pList);
103758 ExprList *pList = pExpr->x.pList;
103761 assert( pList!=0 );
103762 assert( pList->nExpr==2 );
103768 sqlite3ExprDup(db, pList->a[i].pExpr, 0), 0);
103812 pLeft = pExpr->x.pList->a[1].pExpr;
103867 pRight = pExpr->x.pList->a[0].pExpr;
103868 pLeft = pExpr->x.pList->a[1].pExpr;
103939 ** Return TRUE if any of the expressions in pList->a[iFirst...] contain
103943 ExprList *pList, /* Search expressions in ths list */
103949 while( iFirst<pList->nExpr ){
103950 if( (exprTableUsage(pMaskSet, pList->a[iFirst++].pExpr)&allowed)!=0 ){
103964 ** If such an expression is found, its index in pList->a[] is returned. If
103969 ExprList *pList, /* Expression list to search */
103977 for(i=0; i<pList->nExpr; i++){
103978 Expr *p = pList->a[i].pExpr;
105353 ExprList *pList, /* The value list on the RHS of "x IN (v1,v2,v3,...)" */
105362 for(i=0; rc==SQLITE_OK && i<pList->nExpr; i++){
105364 rc = whereEqualScanEst(pParse, p, pList->a[i].pExpr, &nEst);
105573 }else if( ALWAYS(pExpr->x.pList && pExpr->x.pList->nExpr) ){
105575 nInMul *= pExpr->x.pList->nExpr;
105691 whereInScanEst(pParse, pProbe, pFirstTerm->pExpr->x.pList, &nRow);
107854 ExprList *pList;
109241 sqlite3ExprListDelete(pParse->db, (yypminor->yy487).pList);
110374 {sqlite3Insert(pParse, yymsp[-2].minor.yy347, yymsp[0].minor.yy487.pList, yymsp[0].minor.yy487.pSelect, yymsp[-1].minor.yy180, yymsp[-4].minor.yy258);}
110390 yygotominor.yy487.pList = yymsp[-1].minor.yy442;
110397 if( yymsp[-4].minor.yy487.pList ){
110398 yymsp[-4].minor.yy487.pSelect = sqlite3SelectNew(pParse, yymsp[-4].minor.yy487.pList, 0, 0, 0, 0, 0, 0, 0, 0);
110399 yymsp[-4].minor.yy487.pList = 0;
110401 yygotominor.yy487.pList = 0;
110538 ExprList *pList;
110539 pList = sqlite3ExprListAppend(pParse,0, yymsp[0].minor.yy342.pExpr);
110540 pList = sqlite3ExprListAppend(pParse,pList, yymsp[-2].minor.yy342.pExpr);
110541 yygotominor.yy342.pExpr = sqlite3ExprFunction(pParse, pList, &yymsp[-1].minor.yy318.eOperator);
110550 ExprList *pList;
110551 pList = sqlite3ExprListAppend(pParse,0, yymsp[-2].minor.yy342.pExpr);
110552 pList = sqlite3ExprListAppend(pParse,pList, yymsp[-4].minor.yy342.pExpr);
110553 pList = sqlite3ExprListAppend(pParse,pList, yymsp[0].minor.yy342.pExpr);
110554 yygotominor.yy342.pExpr = sqlite3ExprFunction(pParse, pList, &yymsp[-3].minor.yy318.eOperator);
110591 ExprList *pList = sqlite3ExprListAppend(pParse,0, yymsp[-2].minor.yy342.pExpr);
110592 pListpList, yymsp[0].minor.yy342.pExpr);
110595 yygotominor.yy342.pExpr->x.pList = pList;
110597 sqlite3ExprListDelete(pParse->db, pList);
110620 yygotominor.yy342.pExpr->x.pList = yymsp[-1].minor.yy442;
110694 yygotominor.yy342.pExpr->x.pList = yymsp[-2].minor.yy442;
110866 {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);}
116702 sqlite3_int64 iDocid; /* Current docid (if pList!=0) */
116703 int bFreeList; /* True if pList should be sqlite3_free()d */
116704 char *pList; /* Pointer to position list following iDocid */
119037 ** Argument pList points to a position list nList bytes in size. This
119041 ** of the entries from pList at position 0, and terminated by an 0x00 byte.
119046 char *pList, /* Position list (no 0x00 term) */
119047 int nList, /* Size of pList in bytes */
119052 char *p = pList;
119053 char *pEnd = &pList[nList];
120274 ** Arguments pList/nList contain the doclist for token iToken of phrase p.
120277 ** This function assumes that pList points to a buffer allocated using
120283 Fts3Phrase *p, /* Phrase to merge pList/nList into */
120284 int iToken, /* Token pList/nList corresponds to */
120285 char *pList, /* Pointer to doclist */
120286 int nList /* Number of bytes in pList */
120290 if( pList==0 ){
120297 p->doclist.aAll = pList;
120302 sqlite3_free(pList);
120315 pRight = pList;
120321 pLeft = pList;
120372 ** means that the phrase does not appear in the current row, doclist.pList
120390 char *pList;
120392 int rc = sqlite3Fts3DeferredTokenList(pDeferred, &pList, &nList);
120395 if( pList==0 ){
120397 pPhrase->doclist.pList = 0;
120402 aPoslist = pList;
120406 char *aOut = pList;
120413 aPoslist = pList;
120417 pPhrase->doclist.pList = 0;
120429 pPhrase->doclist.pList = aPoslist;
120441 p2 = pPhrase->doclist.pList;
120444 p1 = pPhrase->doclist.pList;
120455 pPhrase->doclist.pList = aOut;
120458 pPhrase->doclist.nList = (int)(aOut - pPhrase->doclist.pList);
120461 pPhrase->doclist.pList = 0;
120596 &pDL->iDocid, &pDL->pList, &pDL->nList
120598 if( rc==SQLITE_OK && !pDL->pList ){
120605 pDL->pList = pDL->pNextDocid;
120626 pDL->pList = pIter;
120628 pDL->nList = (int)(pIter - pDL->pList);
120928 char *pList = 0;
120929 rc = fts3TermSelect(pTab, pToken, pTC->iCol, &nList, &pList);
120930 assert( rc==SQLITE_OK || pList==0 );
120933 fts3EvalPhraseMergeToken(pTab, pTC->pPhrase, pTC->iToken,pList,nList);
121009 sqlite3_free(pPhrase->doclist.pList);
121011 pPhrase->doclist.pList = 0;
121052 assert( pPhrase->doclist.pList );
121054 p2 = pOut = pPhrase->doclist.pList;
121059 nNew = (int)(pOut - pPhrase->doclist.pList) - 1;
121060 assert( pPhrase->doclist.pList[nNew]=='\0' );
121062 memset(&pPhrase->doclist.pList[nNew], 0, pPhrase->doclist.nList - nNew);
121064 *paPoslist = pPhrase->doclist.pList;
121088 ** FTs3Expr.pPhrase->doclist.nList (length of pList in bytes)
121089 ** FTs3Expr.pPhrase->doclist.pList (pointer to position list)
121228 ** (Fts3Expr->pPhrase.doclist.pList/nList) for each phrase in the expression.
121279 char *aPoslist = p->pPhrase->doclist.pList;
121288 aPoslist = pExpr->pRight->pPhrase->doclist.pList;
121391 bHit = (pPhrase->doclist.pList!=0);
121523 ** found in Fts3Expr.pPhrase->doclist.pList for each of the phrase
121529 if( pPhrase && pPhrase->doclist.pList ){
121531 char *p = pPhrase->doclist.pList;
121736 char *pIter = pPhrase->doclist.pList;
125148 PendingList *pList; /* Doclist is assembled here */
125696 static void fts3PendingListDelete(PendingList *pList){
125697 sqlite3_free(pList);
125711 PendingList *pList;
125714 pList = (PendingList *)fts3HashFind(pHash, zToken, nToken);
125715 if( pList ){
125716 p->nPendingData -= (pList->nData + nToken + sizeof(Fts3HashElem));
125718 if( fts3PendingListAppend(&pList, p->iPrevDocid, iCol, iPos, &rc) ){
125719 if( pList==fts3HashInsert(pHash, zToken, nToken, pList) ){
125724 sqlite3_free(pList);
125729 p->nPendingData += (pList->nData + nToken + sizeof(Fts3HashElem));
125853 PendingList *pList = (PendingList *)fts3HashData(pElem);
125854 fts3PendingListDelete(pList);
126271 PendingList *pList = (PendingList *)fts3HashData(pElem);
126274 pReader->nNode = pReader->nDoclist = pList->nData + 1;
126275 pReader->aNode = pReader->aDoclist = pList->aData;
127429 char *pList = *ppList;
127431 char *pEnd = &pList[nList];
127433 char *p = pList;
127441 nList = (int)(p - pList);
127445 nList -= (int)(p - pList);
127446 pList = p;
127450 p = &pList[1];
127454 *ppList = pList;
127467 char *pList,
127478 memcpy(pMsr->aBuffer, pList, nList);
127509 char *pList;
127514 rc = fts3SegReaderNextDocid(p, apSegment[0], &pList, &nList);
127528 fts3ColumnFilter(pMsr->iColFilter, &pList, &nList);
127533 rc = fts3MsrBufferData(pMsr, pList, nList+1);
127538 *paPoslist = pList;
127767 char *pList;
127771 fts3SegReaderNextDocid(p, apSegment[0], &pList, &nList);
127782 fts3ColumnFilter(pFilter->iCol, &pList, &nList);
127813 nWrite = sqlite3Fts3FirstFilter(iDelta, pList, nList, a);
127822 memcpy(&pCsr->aBuffer[nDoclist], pList, nList);
128271 fts3PendingListDelete(pDef->pList);
128272 pDef->pList = 0;
128285 fts3PendingListDelete(pDef->pList);
128332 fts3PendingListAppend(&pDef->pList, iDocid, i, iPos, &rc);
128341 if( pDef->pList ){
128342 rc = fts3PendingListAppendVarint(&pDef->pList, 0);
128362 if( p->pList==0 ){
128366 pRet = (char *)sqlite3_malloc(p->pList->nData);
128369 nSkip = sqlite3Fts3GetVarint(p->pList->aData, &dummy);
128370 *pnData = p->pList->nData - nSkip;
128373 memcpy(pRet, &p->pList->aData[nSkip], *pnData);
128677 char *pList; /* Pointer to start of phrase position list */
128979 pPhrase->pList = pCsr;
128987 assert( pPhrase->pList==0 && pPhrase->pHead==0 && pPhrase->pTail==0 );
129889 char *pList; /* Position-list */
129890 int iPos; /* Position just read from pList */
129909 char *pList; /* Pointer to position list for phrase */
129913 pList = sqlite3Fts3EvalPhrasePoslist(p->pCsr, pExpr, p->iCol);
129915 if( pList ){
129916 fts3GetDeltaPosition(&pList, &iPos);
129923 pT->pList = pList;
130017 if( pT->pList && (pT->iPos-pT->iOff)<iMinPos ){
130028 if( 0==(0xFE&*pTerm->pList) ){
130029 pTerm->pList = 0;
130031 fts3GetDeltaPosition(&pTerm->pList, &pTerm->iPos);