• Home
  • Raw
  • Download

Lines Matching refs:pFrom

15880   Table *pFrom;     /* Table containing the REFERENCES clause (aka: Child) */  member
23703 sqlite3_mutex_methods const *pFrom; in sqlite3MutexInit() local
23708 pFrom = multiThreadedCheckMutex(); in sqlite3MutexInit()
23710 pFrom = sqlite3DefaultMutex(); in sqlite3MutexInit()
23713 pFrom = sqlite3NoopMutex(); in sqlite3MutexInit()
23715 pTo->xMutexInit = pFrom->xMutexInit; in sqlite3MutexInit()
23716 pTo->xMutexEnd = pFrom->xMutexEnd; in sqlite3MutexInit()
23717 pTo->xMutexFree = pFrom->xMutexFree; in sqlite3MutexInit()
23718 pTo->xMutexEnter = pFrom->xMutexEnter; in sqlite3MutexInit()
23719 pTo->xMutexTry = pFrom->xMutexTry; in sqlite3MutexInit()
23720 pTo->xMutexLeave = pFrom->xMutexLeave; in sqlite3MutexInit()
23721 pTo->xMutexHeld = pFrom->xMutexHeld; in sqlite3MutexInit()
23722 pTo->xMutexNotheld = pFrom->xMutexNotheld; in sqlite3MutexInit()
23724 pTo->xMutexAlloc = pFrom->xMutexAlloc; in sqlite3MutexInit()
67539 static void copyNodeContent(MemPage *pFrom, MemPage *pTo, int *pRC){
67541 BtShared * const pBt = pFrom->pBt;
67542 u8 * const aFrom = pFrom->aData;
67544 int const iFromHdr = pFrom->hdrOffset;
67550 assert( pFrom->isInit );
67551 assert( pFrom->nFree>=iToHdr );
67557 memcpy(&aTo[iToHdr], &aFrom[iFromHdr], pFrom->cellOffset + 2*pFrom->nCell);
71150 SQLITE_PRIVATE int sqlite3BtreeCopyFile(Btree *pTo, Btree *pFrom){
71155 sqlite3BtreeEnter(pFrom);
71160 i64 nByte = sqlite3BtreeGetPageSize(pFrom)*(i64)sqlite3BtreeLastPage(pFrom);
71172 b.pSrcDb = pFrom->db;
71173 b.pSrc = pFrom;
71178 sqlite3PagerAlignReserve(sqlite3BtreePager(pTo), sqlite3BtreePager(pFrom));
71199 sqlite3BtreeLeave(pFrom);
72043 static SQLITE_NOINLINE void vdbeClrCopy(Mem *pTo, const Mem *pFrom, int eType){
72046 sqlite3VdbeMemShallowCopy(pTo, pFrom, eType);
72048 SQLITE_PRIVATE void sqlite3VdbeMemShallowCopy(Mem *pTo, const Mem *pFrom, int srcType){
72049 assert( (pFrom->flags & MEM_RowSet)==0 );
72050 assert( pTo->db==pFrom->db );
72051 if( VdbeMemDynamic(pTo) ){ vdbeClrCopy(pTo,pFrom,srcType); return; }
72052 memcpy(pTo, pFrom, MEMCELLSIZE);
72053 if( (pFrom->flags&MEM_Static)==0 ){
72064 SQLITE_PRIVATE int sqlite3VdbeMemCopy(Mem *pTo, const Mem *pFrom){
72067 assert( (pFrom->flags & MEM_RowSet)==0 );
72069 memcpy(pTo, pFrom, MEMCELLSIZE);
72072 if( 0==(pFrom->flags&MEM_Static) ){
72087 SQLITE_PRIVATE void sqlite3VdbeMemMove(Mem *pTo, Mem *pFrom){
72088 assert( pFrom->db==0 || sqlite3_mutex_held(pFrom->db->mutex) );
72090 assert( pFrom->db==0 || pTo->db==0 || pFrom->db==pTo->db );
72093 memcpy(pTo, pFrom, sizeof(Mem));
72094 pFrom->flags = MEM_Null;
72095 pFrom->szMalloc = 0;
79299 Vdbe *pFrom = (Vdbe*)pFromStmt;
79302 assert( pTo->db==pFrom->db );
79303 assert( pTo->nVar==pFrom->nVar );
79305 for(i=0; i<pFrom->nVar; i++){
79306 sqlite3VdbeMemMove(&pTo->aVar[i], &pFrom->aVar[i]);
79326 Vdbe *pFrom = (Vdbe*)pFromStmt;
79328 if( pFrom->nVar!=pTo->nVar ){
79335 assert( (pFrom->prepFlags & SQLITE_PREPARE_SAVESQL)!=0 || pFrom->expmask==0 );
79336 if( pFrom->expmask ){
79337 pFrom->expired = 1;
98317 zWhere = whereOrName(pParse->db, zWhere, p->pFrom->zName);
98603 Table *pFrom = p->pFrom;
98604 if( pFrom!=pTab ){
98605 reloadTableSchema(pParse, p->pFrom, pFrom->zName);
99193 static void sampleCopy(Stat4Accum *p, Stat4Sample *pTo, Stat4Sample *pFrom){
99194 pTo->isPSample = pFrom->isPSample;
99195 pTo->iCol = pFrom->iCol;
99196 pTo->iHash = pFrom->iHash;
99197 memcpy(pTo->anEq, pFrom->anEq, sizeof(tRowcnt)*p->nCol);
99198 memcpy(pTo->anLt, pFrom->anLt, sizeof(tRowcnt)*p->nCol);
99199 memcpy(pTo->anDLt, pFrom->anDLt, sizeof(tRowcnt)*p->nCol);
99200 if( pFrom->nRowid ){
99201 sampleSetRowid(p->db, pTo, pFrom->nRowid, pFrom->u.aRowid);
99203 sampleSetRowidInt64(p->db, pTo, pFrom->u.iRowid);
104310 pFKey->pFrom = p;
106682 SrcList *pFrom;
106686 pFrom = sqlite3SrcListAppend(db, 0, 0, 0);
106687 if( pFrom ){
106688 assert( pFrom->nSrc==1 );
106689 pFrom->a[0].zName = sqlite3DbStrDup(db, pView->zName);
106690 pFrom->a[0].zDatabase = sqlite3DbStrDup(db, db->aDb[iDb].zDbSName);
106691 assert( pFrom->a[0].pOn==0 );
106692 assert( pFrom->a[0].pUsing==0 );
106694 pSel = sqlite3SelectNew(pParse, 0, pFrom, pWhere, 0, 0, pOrderBy,
109711 pFKey->pFrom->zName, pFKey->zTo);
109799 if( pTab==pFKey->pFrom && nIncr==1 ){
109831 if( pTab==pFKey->pFrom && nIncr==1 ){
110014 zCol = pFKey->pFrom->aCol[iCol].zName;
110031 if( pTab==pFKey->pFrom && nIncr>0 ){
110439 pItem->pTab = pFKey->pFrom;
110440 pItem->zName = pFKey->pFrom->zName;
110645 sqlite3TokenInit(&tFromCol, pFKey->pFrom->aCol[iFromCol].zName);
110683 Expr *pDflt = pFKey->pFrom->aCol[iFromCol].pDflt;
110698 zFrom = pFKey->pFrom->zName;
122686 SQLITE_PRIVATE int sqlite3IndexedByLookup(Parse *pParse, struct SrcList_item *pFrom){
122687 if( pFrom->pTab && pFrom->fg.isIndexedBy ){
122688 Table *pTab = pFrom->pTab;
122689 char *zIndexedBy = pFrom->u1.zIndexedBy;
122700 pFrom->pIBIndex = pIdx;
122779 static int cannotBeFunction(Parse *pParse, struct SrcList_item *pFrom){
122780 if( pFrom->fg.isTabFunc ){
122781 sqlite3ErrorMsg(pParse, "'%s' is not a function", pFrom->zName);
122856 struct SrcList_item *pFrom
122863 assert( pFrom->pTab==0 );
122865 pCte = searchWith(pParse->pWith, pFrom, &pWith);
122882 if( cannotBeFunction(pParse, pFrom) ) return SQLITE_ERROR;
122884 assert( pFrom->pTab==0 );
122885 pFrom->pTab = pTab = sqlite3DbMallocZero(db, sizeof(Table));
122892 pFrom->pSelect = sqlite3SelectDup(db, pCte->pSelect, 0);
122894 assert( pFrom->pSelect );
122897 pSel = pFrom->pSelect;
122901 SrcList *pSrc = pFrom->pSelect->pSrc;
123022 struct SrcList_item *pFrom;
123051 for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){
123053 assert( pFrom->fg.isRecursive==0 || pFrom->pTab!=0 );
123054 if( pFrom->fg.isRecursive ) continue;
123055 assert( pFrom->pTab==0 );
123057 if( withExpand(pWalker, pFrom) ) return WRC_Abort;
123058 if( pFrom->pTab ) {} else
123060 if( pFrom->zName==0 ){
123062 Select *pSel = pFrom->pSelect;
123065 assert( pFrom->pTab==0 );
123067 pFrom->pTab = pTab = sqlite3DbMallocZero(db, sizeof(Table));
123070 if( pFrom->zAlias ){
123071 pTab->zName = sqlite3DbStrDup(db, pFrom->zAlias);
123083 assert( pFrom->pTab==0 );
123084 pFrom->pTab = pTab = sqlite3LocateTableItem(pParse, 0, pFrom);
123089 pFrom->pTab = 0;
123093 if( !IsVirtual(pTab) && cannotBeFunction(pParse, pFrom) ){
123100 assert( pFrom->pSelect==0 );
123101 pFrom->pSelect = sqlite3SelectDup(db, pTab->pSelect, 0);
123102 sqlite3SelectSetName(pFrom->pSelect, pTab->zName);
123105 sqlite3WalkSelect(pWalker, pFrom->pSelect);
123112 if( sqlite3IndexedByLookup(pParse, pFrom) ){
123182 for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){
123183 Table *pTab = pFrom->pTab;
123184 Select *pSub = pFrom->pSelect;
123185 char *zTabName = pFrom->zAlias;
123225 if( (pFrom->fg.jointype & JT_NATURAL)!=0
123232 if( sqlite3IdListIndex(pFrom->pUsing, zName)>=0 ){
123377 struct SrcList_item *pFrom;
123384 for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){
123385 Table *pTab = pFrom->pTab;
123389 Select *pSel = pFrom->pSelect;
125763 static void transferParseError(Parse *pTo, Parse *pFrom){
125764 assert( pFrom->zErrMsg==0 || pFrom->nErr );
125767 pTo->zErrMsg = pFrom->zErrMsg;
125768 pTo->nErr = pFrom->nErr;
125769 pTo->rc = pFrom->rc;
125771 sqlite3DbFree(pFrom->db, pFrom->zErrMsg);
132292 SrcList *pFrom, /* The FROM clause */
132301 iCur = pFrom->a[i].iCursor;
132302 for(pIdx=pFrom->a[i].pTab->pIndex; pIdx; pIdx=pIdx->pNext){
132316 SrcList *pFrom, /* The FROM clause */
132339 return exprMightBeIndexed2(pFrom,mPrereq,aiCurCol,pExpr);
134781 static int whereLoopXfer(sqlite3 *db, WhereLoop *pTo, WhereLoop *pFrom){
134783 if( whereLoopResize(db, pTo, pFrom->nLTerm) ){
134787 memcpy(pTo, pFrom, WHERE_LOOP_XFER_SZ);
134788 memcpy(pTo->aLTerm, pFrom->aLTerm, pTo->nLTerm*sizeof(pTo->aLTerm[0]));
134789 if( pFrom->wsFlags & WHERE_VIRTUALTABLE ){
134790 pFrom->u.vtab.needFree = 0;
134791 }else if( (pFrom->wsFlags & WHERE_AUTO_INDEX)!=0 ){
134792 pFrom->u.btree.pIndex = 0;
136834 WherePath *pFrom; /* An element of aFrom[] that we are working on */
136872 for(ii=mxChoice*2, pFrom=aTo; ii>0; ii--, pFrom++, pX += nLoop){
136873 pFrom->aLoop = pX;
136911 for(ii=0, pFrom=aFrom; ii<nFrom; ii++, pFrom++){
136916 i8 isOrdered = pFrom->isOrdered; /* isOrdered for (pFrom+pWLoop) */
136920 if( (pWLoop->prereq & ~pFrom->maskLoop)!=0 ) continue;
136921 if( (pWLoop->maskSelf & pFrom->maskLoop)!=0 ) continue;
136922 if( (pWLoop->wsFlags & WHERE_AUTO_INDEX)!=0 && pFrom->nRow<10 ){
136930 rUnsorted = sqlite3LogEstAdd(pWLoop->rSetup,pWLoop->rRun + pFrom->nRow);
136931 rUnsorted = sqlite3LogEstAdd(rUnsorted, pFrom->rUnsorted);
136932 nOut = pFrom->nRow + pWLoop->nOut;
136933 maskNew = pFrom->maskLoop | pWLoop->maskSelf;
136936 pWInfo->pOrderBy, pFrom, pWInfo->wctrlFlags,
136939 revMask = pFrom->revLoop;
136988 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted,
137007 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted,
137031 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted,
137049 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted,
137058 pTo->maskLoop = pFrom->maskLoop | pWLoop->maskSelf;
137064 memcpy(pTo->aLoop, pFrom->aLoop, sizeof(WhereLoop*)*iLoop);
137100 pFrom = aTo;
137102 aFrom = pFrom;
137113 pFrom = aFrom;
137115 if( pFrom->rCost>aFrom[ii].rCost ) pFrom = &aFrom[ii];
137121 pLevel->pWLoop = pWLoop = pFrom->aLoop[iLoop];
137131 int rc = wherePathSatisfiesOrderBy(pWInfo, pWInfo->pResultSet, pFrom,
137132 WHERE_DISTINCTBY, nLoop-1, pFrom->aLoop[nLoop-1], &notUsed);
137139 if( pFrom->isOrdered==pWInfo->pOrderBy->nExpr ){
137143 pWInfo->nOBSat = pFrom->isOrdered;
137144 pWInfo->revMask = pFrom->revLoop;
137148 u32 wsFlags = pFrom->aLoop[nLoop-1]->wsFlags;
137153 int rc = wherePathSatisfiesOrderBy(pWInfo, pWInfo->pOrderBy, pFrom,
137154 WHERE_ORDERBY_LIMIT, nLoop-1, pFrom->aLoop[nLoop-1], &m);
137170 pFrom, 0, nLoop-1, pFrom->aLoop[nLoop-1], &revMask
137181 pWInfo->nRowOut = pFrom->nRow;
140878 SrcList *pFrom;
140882 pFrom = sqlite3SrcListAppendFromTerm(pParse,0,0,0,&x,pRhs,0,0);
140883 pRhs = sqlite3SelectNew(pParse,0,pFrom,0,0,0,0,0,0);
160194 static int fts3SegReaderRequire(Fts3SegReader *pReader, char *pFrom, int nByte){
160197 || (pFrom>=pReader->aNode && pFrom<&pReader->aNode[pReader->nNode])
160200 && (pFrom - pReader->aNode + nByte)>pReader->nPopulate