Home
last modified time | relevance | path

Searched refs:pItem (Results 1 – 16 of 16) sorted by relevance

/sqlite-3.40.0/src/
H A Dresolve.c122 zSpan = pItem->zEName; in sqlite3MatchEName()
300 for(i=0, pItem=pSrcList->a; i<pSrcList->nSrc; i++, pItem++){ in lookupName()
305 assert( (int)pItem->fg.isNestedFrom == IsNestedFrom(pItem->pSelect) ); in lookupName()
363 zTabName = pItem->zAlias ? pItem->zAlias : pTab->zName; in lookupName()
883 SrcItem *pItem; in resolveExprStep() local
1461 for(i=0, pItem=pOrderBy->a; i<pOrderBy->nExpr; i++, pItem++){ in resolveCompoundOrderBy()
1562 for(i=0, pItem=pOrderBy->a; i<pOrderBy->nExpr; i++, pItem++){ in sqlite3ResolveOrderGroupBy()
1637 for(i=0, pItem=pOrderBy->a; i<pOrderBy->nExpr; i++, pItem++){ in resolveOrderGroupBy()
1756 if( pItem->pSelect && (pItem->pSelect->selFlags & SF_Resolved)==0 ){ in resolveSelectStep()
1760 if( pItem->zName ) pParse->zAuthContext = pItem->zName; in resolveSelectStep()
[all …]
H A Dwalker.c106 struct ExprList_item *pItem; in sqlite3WalkExprList() local
108 for(i=p->nExpr, pItem=p->a; i>0; i--, pItem++){ in sqlite3WalkExprList()
109 if( sqlite3WalkExpr(pWalker, pItem->pExpr) ) return WRC_Abort; in sqlite3WalkExprList()
167 SrcItem *pItem; in sqlite3WalkSelectFrom() local
171 for(i=pSrc->nSrc, pItem=pSrc->a; i>0; i--, pItem++){ in sqlite3WalkSelectFrom()
172 if( pItem->pSelect && sqlite3WalkSelect(pWalker, pItem->pSelect) ){ in sqlite3WalkSelectFrom()
175 if( pItem->fg.isTabFunc in sqlite3WalkSelectFrom()
176 && sqlite3WalkExprList(pWalker, pItem->u1.pFuncArg) in sqlite3WalkSelectFrom()
H A Dselect.c1566 for(i=iStart, pItem=pList->a+iStart; i<nExpr; i++, pItem++){ in sqlite3KeyInfoFromExprList()
3462 for(j=0, pItem=pOrderBy->a; j<nOrderBy; j++, pItem++){ in multiSelectOrderBy()
3489 for(i=1, pItem=pOrderBy->a; i<=nOrderBy; i++, pItem++){ in multiSelectOrderBy()
3891 SrcItem *pItem; in substSelect() local
3902 for(i=pSrc->nSrc, pItem=pSrc->a; i>0; i--, pItem++){ in substSelect()
3966 for(i=0, pItem=pSrc->a; i<pSrc->nSrc; i++, pItem++){ in srclistRenumberCursors()
3973 pItem->iCursor = aCsrMap[pItem->iCursor+1]; in srclistRenumberCursors()
6348 for(j=0, pItem=pList->a; !pColl && j<nArg; j++, pItem++){ in updateAccumulator()
6486 for(pItem = pTabList->a; pItem<pThis; pItem++){ in isSelfJoinView()
6973 if( pItem->colUsed==0 && pItem->zName!=0 ){ in sqlite3Select()
[all …]
H A Dtreeview.c195 sqlite3_str_appendf(&x, "{%d:*} %!S", pItem->iCursor, pItem); in sqlite3TreeViewSrcList()
196 if( pItem->pTab ){ in sqlite3TreeViewSrcList()
198 pItem->pTab->zName, pItem->pTab->nCol, pItem->pTab, pItem->colUsed); in sqlite3TreeViewSrcList()
212 if( pItem->fg.fromDDL ){ in sqlite3TreeViewSrcList()
215 if( pItem->fg.isCte ){ in sqlite3TreeViewSrcList()
218 if( pItem->fg.isOn || (pItem->fg.isUsing==0 && pItem->u3.pOn!=0) ){ in sqlite3TreeViewSrcList()
224 if( pItem->pSelect ) n++; in sqlite3TreeViewSrcList()
227 if( pItem->fg.isUsing ){ in sqlite3TreeViewSrcList()
230 if( pItem->pSelect ){ in sqlite3TreeViewSrcList()
231 if( pItem->pTab ){ in sqlite3TreeViewSrcList()
[all …]
H A Dattach.c460 SrcItem *pItem; in fixSelectCb() local
466 for(i=0, pItem=pList->a; i<pList->nSrc; i++, pItem++){ in fixSelectCb()
468 if( pItem->zDatabase ){ in fixSelectCb()
469 if( iDb!=sqlite3FindDbName(db, pItem->zDatabase) ){ in fixSelectCb()
472 pFix->zType, pFix->pName, pItem->zDatabase); in fixSelectCb()
475 sqlite3DbFree(db, pItem->zDatabase); in fixSelectCb()
476 pItem->zDatabase = 0; in fixSelectCb()
477 pItem->fg.notCte = 1; in fixSelectCb()
479 pItem->pSchema = pFix->pSchema; in fixSelectCb()
480 pItem->fg.fromDDL = 1; in fixSelectCb()
H A Dexpr.c1614 pItem = pNew->a; in sqlite3ExprListDup()
1639 pItem->fg.done = 0; in sqlite3ExprListDup()
1806 *pItem = zeroItem; in sqlite3ExprListAppendNew()
1828 *pItem = zeroItem; in sqlite3ExprListAppendGrow()
1845 *pItem = zeroItem; in sqlite3ExprListAppend()
2041 if( pItem->zEName ) sqlite3DbNNFreeNN(db, pItem->zEName); in exprListDeleteNN()
2042 pItem++; in exprListDeleteNN()
3195 for(i=pList->nExpr, pItem=pList->a; i>0; i--, pItem++){ in sqlite3CodeRhsOfIN()
4904 for(pItem=p->a, i=p->nExpr; i>0; pItem++, i--){ in sqlite3ExprCodeRunJustOnce()
5061 for(pItem=pList->a, i=0; i<n; i++, pItem++){ in sqlite3ExprCodeExprList()
[all …]
H A Dbuild.c4847 SrcItem *pItem; in sqlite3SrcListAppend() local
4888 SrcItem *pItem; in sqlite3SrcListAssignCursors() local
4891 for(i=0, pItem=pList->a; i<pList->nSrc; i++, pItem++){ in sqlite3SrcListAssignCursors()
4906 SrcItem *pItem; in sqlite3SrcListDelete() local
4909 for(pItem=pList->a, i=0; i<pList->nSrc; i++, pItem++){ in sqlite3SrcListDelete()
4910 if( pItem->zDatabase ) sqlite3DbNNFreeNN(db, pItem->zDatabase); in sqlite3SrcListDelete()
4911 if( pItem->zName ) sqlite3DbNNFreeNN(db, pItem->zName); in sqlite3SrcListDelete()
4912 if( pItem->zAlias ) sqlite3DbNNFreeNN(db, pItem->zAlias); in sqlite3SrcListDelete()
4916 if( pItem->pSelect ) sqlite3SelectDelete(db, pItem->pSelect); in sqlite3SrcListDelete()
4951 SrcItem *pItem; in sqlite3SrcListAppendFromTerm() local
[all …]
H A Dprintf.c873 SrcItem *pItem; in sqlite3_str_vappendf() local
875 pItem = va_arg(ap, SrcItem*); in sqlite3_str_vappendf()
877 if( pItem->zAlias && !flag_altform2 ){ in sqlite3_str_vappendf()
878 sqlite3_str_appendall(pAccum, pItem->zAlias); in sqlite3_str_vappendf()
879 }else if( pItem->zName ){ in sqlite3_str_vappendf()
880 if( pItem->zDatabase ){ in sqlite3_str_vappendf()
881 sqlite3_str_appendall(pAccum, pItem->zDatabase); in sqlite3_str_vappendf()
884 sqlite3_str_appendall(pAccum, pItem->zName); in sqlite3_str_vappendf()
885 }else if( pItem->zAlias ){ in sqlite3_str_vappendf()
886 sqlite3_str_appendall(pAccum, pItem->zAlias); in sqlite3_str_vappendf()
[all …]
H A Ddelete.c32 SrcItem *pItem = pSrc->a; in sqlite3SrcListLookup() local
34 assert( pItem && pSrc->nSrc>=1 ); in sqlite3SrcListLookup()
35 pTab = sqlite3LocateTableItem(pParse, 0, pItem); in sqlite3SrcListLookup()
36 sqlite3DeleteTable(pParse->db, pItem->pTab); in sqlite3SrcListLookup()
37 pItem->pTab = pTab; in sqlite3SrcListLookup()
40 if( pItem->fg.isIndexedBy && sqlite3IndexedByLookup(pParse, pItem) ){ in sqlite3SrcListLookup()
H A Dwhere.c1076 const SrcItem *pItem; in sqlite3ConstructBloomFilter() local
1093 assert( pItem!=0 ); in sqlite3ConstructBloomFilter()
1094 pTab = pItem->pTab; in sqlite3ConstructBloomFilter()
2150 pItem->zAlias ? pItem->zAlias : pTab->zName); in sqlite3WhereLoopPrint()
4140 SrcItem *pItem; in whereLoopAddOr() local
4261 SrcItem *pItem; in whereLoopAddAll() local
4280 for(iTab=0, pItem=pTabList->a; pItem<pEnd; iTab++, pItem++){ in whereLoopAddAll()
5180 SrcItem *pItem; in whereShortCut() local
5194 pTab = pItem->pTab; in whereShortCut()
5196 if( pItem->fg.isIndexedBy || pItem->fg.notIndexed ){ in whereShortCut()
[all …]
H A Dfkey.c1044 SrcItem *pItem = pSrc->a; in sqlite3FkCheck() local
1045 pItem->pTab = pFKey->pFrom; in sqlite3FkCheck()
1046 pItem->zName = pFKey->pFrom->zName; in sqlite3FkCheck()
1047 pItem->pTab->nTabRef++; in sqlite3FkCheck()
1048 pItem->iCursor = pParse->nTab++; in sqlite3FkCheck()
1077 pItem->zName = 0; in sqlite3FkCheck()
H A Dwhereexpr.c1810 SrcItem *pItem, /* The FROM clause term to process */ in sqlite3WhereTabFuncArgs() argument
1818 if( pItem->fg.isTabFunc==0 ) return; in sqlite3WhereTabFuncArgs()
1819 pTab = pItem->pTab; in sqlite3WhereTabFuncArgs()
1821 pArgs = pItem->u1.pFuncArg; in sqlite3WhereTabFuncArgs()
1834 pColRef->iTable = pItem->iCursor; in sqlite3WhereTabFuncArgs()
1838 pItem->colUsed |= sqlite3ExprColUsed(pColRef); in sqlite3WhereTabFuncArgs()
1842 if( pItem->fg.jointype & (JT_LEFT|JT_LTORJ) ){ in sqlite3WhereTabFuncArgs()
1847 sqlite3SetJoinExpr(pTerm, pItem->iCursor, joinType); in sqlite3WhereTabFuncArgs()
H A Dtrigger.c931 struct ExprList_item *pItem = &pNew->a[pNew->nExpr-1]; in sqlite3ExpandReturning() local
932 pItem->zEName = sqlite3DbStrDup(db, pTab->aCol[jj].zCnName); in sqlite3ExpandReturning()
933 pItem->fg.eEName = ENAME_NAME; in sqlite3ExpandReturning()
940 struct ExprList_item *pItem = &pNew->a[pNew->nExpr-1]; in sqlite3ExpandReturning() local
941 pItem->zEName = sqlite3DbStrDup(db, pList->a[i].zEName); in sqlite3ExpandReturning()
942 pItem->fg.eEName = pList->a[i].fg.eEName; in sqlite3ExpandReturning()
H A Dwherecode.c132 SrcItem *pItem = &pTabList->a[pLevel->iFrom]; in sqlite3WhereExplainOneScan() local
152 sqlite3_str_appendf(&str, "%s %S", isSearch ? "SEARCH" : "SCAN", pItem); in sqlite3WhereExplainOneScan()
160 if( !HasRowid(pItem->pTab) && IsPrimaryKeyIndex(pIdx) ){ in sqlite3WhereExplainOneScan()
181 const Table *pTab = pItem->pTab; in sqlite3WhereExplainOneScan()
207 if( pItem->fg.jointype & JT_LEFT ){ in sqlite3WhereExplainOneScan()
242 SrcItem *pItem = &pWInfo->pTabList->a[pLevel->iFrom]; in sqlite3WhereExplainBloomFilter() local
253 sqlite3_str_appendf(&str, "BLOOM FILTER ON %S (", pItem); in sqlite3WhereExplainBloomFilter()
256 const Table *pTab = pItem->pTab; in sqlite3WhereExplainBloomFilter()
H A Dalter.c1656 SrcItem *pItem = &pSrc->a[i]; in renameTableSelectCb() local
1657 if( pItem->pTab==p->pTab ){ in renameTableSelectCb()
1658 renameTokenFind(pWalker->pParse, p, pItem->zName); in renameTableSelectCb()
1801 SrcItem *pItem = &pStep->pFrom->a[i]; in renameTableFunc() local
1802 if( 0==sqlite3_stricmp(pItem->zName, zOld) ){ in renameTableFunc()
1803 renameTokenFind(&sParse, &sCtx, pItem->zName); in renameTableFunc()
H A Dinsert.c2791 SrcItem *pItem; /* An element of pSelect->pSrc */ in xferOptimization() local
2860 pItem = pSelect->pSrc->a; in xferOptimization()
2861 pSrc = sqlite3LocateTableItem(pParse, 0, pItem); in xferOptimization()