• 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()
67523 static void copyNodeContent(MemPage *pFrom, MemPage *pTo, int *pRC){
67525 BtShared * const pBt = pFrom->pBt;
67526 u8 * const aFrom = pFrom->aData;
67528 int const iFromHdr = pFrom->hdrOffset;
67534 assert( pFrom->isInit );
67535 assert( pFrom->nFree>=iToHdr );
67541 memcpy(&aTo[iToHdr], &aFrom[iFromHdr], pFrom->cellOffset + 2*pFrom->nCell);
71134 SQLITE_PRIVATE int sqlite3BtreeCopyFile(Btree *pTo, Btree *pFrom){
71139 sqlite3BtreeEnter(pFrom);
71144 i64 nByte = sqlite3BtreeGetPageSize(pFrom)*(i64)sqlite3BtreeLastPage(pFrom);
71156 b.pSrcDb = pFrom->db;
71157 b.pSrc = pFrom;
71162 sqlite3PagerAlignReserve(sqlite3BtreePager(pTo), sqlite3BtreePager(pFrom));
71183 sqlite3BtreeLeave(pFrom);
72027 static SQLITE_NOINLINE void vdbeClrCopy(Mem *pTo, const Mem *pFrom, int eType){
72030 sqlite3VdbeMemShallowCopy(pTo, pFrom, eType);
72032 SQLITE_PRIVATE void sqlite3VdbeMemShallowCopy(Mem *pTo, const Mem *pFrom, int srcType){
72033 assert( (pFrom->flags & MEM_RowSet)==0 );
72034 assert( pTo->db==pFrom->db );
72035 if( VdbeMemDynamic(pTo) ){ vdbeClrCopy(pTo,pFrom,srcType); return; }
72036 memcpy(pTo, pFrom, MEMCELLSIZE);
72037 if( (pFrom->flags&MEM_Static)==0 ){
72048 SQLITE_PRIVATE int sqlite3VdbeMemCopy(Mem *pTo, const Mem *pFrom){
72051 assert( (pFrom->flags & MEM_RowSet)==0 );
72053 memcpy(pTo, pFrom, MEMCELLSIZE);
72056 if( 0==(pFrom->flags&MEM_Static) ){
72071 SQLITE_PRIVATE void sqlite3VdbeMemMove(Mem *pTo, Mem *pFrom){
72072 assert( pFrom->db==0 || sqlite3_mutex_held(pFrom->db->mutex) );
72074 assert( pFrom->db==0 || pTo->db==0 || pFrom->db==pTo->db );
72077 memcpy(pTo, pFrom, sizeof(Mem));
72078 pFrom->flags = MEM_Null;
72079 pFrom->szMalloc = 0;
79283 Vdbe *pFrom = (Vdbe*)pFromStmt;
79286 assert( pTo->db==pFrom->db );
79287 assert( pTo->nVar==pFrom->nVar );
79289 for(i=0; i<pFrom->nVar; i++){
79290 sqlite3VdbeMemMove(&pTo->aVar[i], &pFrom->aVar[i]);
79310 Vdbe *pFrom = (Vdbe*)pFromStmt;
79312 if( pFrom->nVar!=pTo->nVar ){
79319 assert( (pFrom->prepFlags & SQLITE_PREPARE_SAVESQL)!=0 || pFrom->expmask==0 );
79320 if( pFrom->expmask ){
79321 pFrom->expired = 1;
98301 zWhere = whereOrName(pParse->db, zWhere, p->pFrom->zName);
98587 Table *pFrom = p->pFrom;
98588 if( pFrom!=pTab ){
98589 reloadTableSchema(pParse, p->pFrom, pFrom->zName);
99177 static void sampleCopy(Stat4Accum *p, Stat4Sample *pTo, Stat4Sample *pFrom){
99178 pTo->isPSample = pFrom->isPSample;
99179 pTo->iCol = pFrom->iCol;
99180 pTo->iHash = pFrom->iHash;
99181 memcpy(pTo->anEq, pFrom->anEq, sizeof(tRowcnt)*p->nCol);
99182 memcpy(pTo->anLt, pFrom->anLt, sizeof(tRowcnt)*p->nCol);
99183 memcpy(pTo->anDLt, pFrom->anDLt, sizeof(tRowcnt)*p->nCol);
99184 if( pFrom->nRowid ){
99185 sampleSetRowid(p->db, pTo, pFrom->nRowid, pFrom->u.aRowid);
99187 sampleSetRowidInt64(p->db, pTo, pFrom->u.iRowid);
104294 pFKey->pFrom = p;
106666 SrcList *pFrom;
106670 pFrom = sqlite3SrcListAppend(db, 0, 0, 0);
106671 if( pFrom ){
106672 assert( pFrom->nSrc==1 );
106673 pFrom->a[0].zName = sqlite3DbStrDup(db, pView->zName);
106674 pFrom->a[0].zDatabase = sqlite3DbStrDup(db, db->aDb[iDb].zDbSName);
106675 assert( pFrom->a[0].pOn==0 );
106676 assert( pFrom->a[0].pUsing==0 );
106678 pSel = sqlite3SelectNew(pParse, 0, pFrom, pWhere, 0, 0, pOrderBy,
109695 pFKey->pFrom->zName, pFKey->zTo);
109783 if( pTab==pFKey->pFrom && nIncr==1 ){
109815 if( pTab==pFKey->pFrom && nIncr==1 ){
109998 zCol = pFKey->pFrom->aCol[iCol].zName;
110015 if( pTab==pFKey->pFrom && nIncr>0 ){
110423 pItem->pTab = pFKey->pFrom;
110424 pItem->zName = pFKey->pFrom->zName;
110629 sqlite3TokenInit(&tFromCol, pFKey->pFrom->aCol[iFromCol].zName);
110667 Expr *pDflt = pFKey->pFrom->aCol[iFromCol].pDflt;
110682 zFrom = pFKey->pFrom->zName;
122670 SQLITE_PRIVATE int sqlite3IndexedByLookup(Parse *pParse, struct SrcList_item *pFrom){
122671 if( pFrom->pTab && pFrom->fg.isIndexedBy ){
122672 Table *pTab = pFrom->pTab;
122673 char *zIndexedBy = pFrom->u1.zIndexedBy;
122684 pFrom->pIBIndex = pIdx;
122763 static int cannotBeFunction(Parse *pParse, struct SrcList_item *pFrom){
122764 if( pFrom->fg.isTabFunc ){
122765 sqlite3ErrorMsg(pParse, "'%s' is not a function", pFrom->zName);
122840 struct SrcList_item *pFrom
122847 assert( pFrom->pTab==0 );
122849 pCte = searchWith(pParse->pWith, pFrom, &pWith);
122866 if( cannotBeFunction(pParse, pFrom) ) return SQLITE_ERROR;
122868 assert( pFrom->pTab==0 );
122869 pFrom->pTab = pTab = sqlite3DbMallocZero(db, sizeof(Table));
122876 pFrom->pSelect = sqlite3SelectDup(db, pCte->pSelect, 0);
122878 assert( pFrom->pSelect );
122881 pSel = pFrom->pSelect;
122885 SrcList *pSrc = pFrom->pSelect->pSrc;
123006 struct SrcList_item *pFrom;
123035 for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){
123037 assert( pFrom->fg.isRecursive==0 || pFrom->pTab!=0 );
123038 if( pFrom->fg.isRecursive ) continue;
123039 assert( pFrom->pTab==0 );
123041 if( withExpand(pWalker, pFrom) ) return WRC_Abort;
123042 if( pFrom->pTab ) {} else
123044 if( pFrom->zName==0 ){
123046 Select *pSel = pFrom->pSelect;
123049 assert( pFrom->pTab==0 );
123051 pFrom->pTab = pTab = sqlite3DbMallocZero(db, sizeof(Table));
123054 if( pFrom->zAlias ){
123055 pTab->zName = sqlite3DbStrDup(db, pFrom->zAlias);
123067 assert( pFrom->pTab==0 );
123068 pFrom->pTab = pTab = sqlite3LocateTableItem(pParse, 0, pFrom);
123073 pFrom->pTab = 0;
123077 if( !IsVirtual(pTab) && cannotBeFunction(pParse, pFrom) ){
123084 assert( pFrom->pSelect==0 );
123085 pFrom->pSelect = sqlite3SelectDup(db, pTab->pSelect, 0);
123086 sqlite3SelectSetName(pFrom->pSelect, pTab->zName);
123089 sqlite3WalkSelect(pWalker, pFrom->pSelect);
123096 if( sqlite3IndexedByLookup(pParse, pFrom) ){
123166 for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){
123167 Table *pTab = pFrom->pTab;
123168 Select *pSub = pFrom->pSelect;
123169 char *zTabName = pFrom->zAlias;
123209 if( (pFrom->fg.jointype & JT_NATURAL)!=0
123216 if( sqlite3IdListIndex(pFrom->pUsing, zName)>=0 ){
123361 struct SrcList_item *pFrom;
123368 for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){
123369 Table *pTab = pFrom->pTab;
123373 Select *pSel = pFrom->pSelect;
125747 static void transferParseError(Parse *pTo, Parse *pFrom){
125748 assert( pFrom->zErrMsg==0 || pFrom->nErr );
125751 pTo->zErrMsg = pFrom->zErrMsg;
125752 pTo->nErr = pFrom->nErr;
125753 pTo->rc = pFrom->rc;
125755 sqlite3DbFree(pFrom->db, pFrom->zErrMsg);
132276 SrcList *pFrom, /* The FROM clause */
132285 iCur = pFrom->a[i].iCursor;
132286 for(pIdx=pFrom->a[i].pTab->pIndex; pIdx; pIdx=pIdx->pNext){
132300 SrcList *pFrom, /* The FROM clause */
132323 return exprMightBeIndexed2(pFrom,mPrereq,aiCurCol,pExpr);
134765 static int whereLoopXfer(sqlite3 *db, WhereLoop *pTo, WhereLoop *pFrom){
134767 if( whereLoopResize(db, pTo, pFrom->nLTerm) ){
134771 memcpy(pTo, pFrom, WHERE_LOOP_XFER_SZ);
134772 memcpy(pTo->aLTerm, pFrom->aLTerm, pTo->nLTerm*sizeof(pTo->aLTerm[0]));
134773 if( pFrom->wsFlags & WHERE_VIRTUALTABLE ){
134774 pFrom->u.vtab.needFree = 0;
134775 }else if( (pFrom->wsFlags & WHERE_AUTO_INDEX)!=0 ){
134776 pFrom->u.btree.pIndex = 0;
136818 WherePath *pFrom; /* An element of aFrom[] that we are working on */
136856 for(ii=mxChoice*2, pFrom=aTo; ii>0; ii--, pFrom++, pX += nLoop){
136857 pFrom->aLoop = pX;
136895 for(ii=0, pFrom=aFrom; ii<nFrom; ii++, pFrom++){
136900 i8 isOrdered = pFrom->isOrdered; /* isOrdered for (pFrom+pWLoop) */
136904 if( (pWLoop->prereq & ~pFrom->maskLoop)!=0 ) continue;
136905 if( (pWLoop->maskSelf & pFrom->maskLoop)!=0 ) continue;
136906 if( (pWLoop->wsFlags & WHERE_AUTO_INDEX)!=0 && pFrom->nRow<10 ){
136914 rUnsorted = sqlite3LogEstAdd(pWLoop->rSetup,pWLoop->rRun + pFrom->nRow);
136915 rUnsorted = sqlite3LogEstAdd(rUnsorted, pFrom->rUnsorted);
136916 nOut = pFrom->nRow + pWLoop->nOut;
136917 maskNew = pFrom->maskLoop | pWLoop->maskSelf;
136920 pWInfo->pOrderBy, pFrom, pWInfo->wctrlFlags,
136923 revMask = pFrom->revLoop;
136972 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted,
136991 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted,
137015 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted,
137033 wherePathName(pFrom, iLoop, pWLoop), rCost, nOut, rUnsorted,
137042 pTo->maskLoop = pFrom->maskLoop | pWLoop->maskSelf;
137048 memcpy(pTo->aLoop, pFrom->aLoop, sizeof(WhereLoop*)*iLoop);
137084 pFrom = aTo;
137086 aFrom = pFrom;
137097 pFrom = aFrom;
137099 if( pFrom->rCost>aFrom[ii].rCost ) pFrom = &aFrom[ii];
137105 pLevel->pWLoop = pWLoop = pFrom->aLoop[iLoop];
137115 int rc = wherePathSatisfiesOrderBy(pWInfo, pWInfo->pResultSet, pFrom,
137116 WHERE_DISTINCTBY, nLoop-1, pFrom->aLoop[nLoop-1], &notUsed);
137123 if( pFrom->isOrdered==pWInfo->pOrderBy->nExpr ){
137127 pWInfo->nOBSat = pFrom->isOrdered;
137128 pWInfo->revMask = pFrom->revLoop;
137132 u32 wsFlags = pFrom->aLoop[nLoop-1]->wsFlags;
137137 int rc = wherePathSatisfiesOrderBy(pWInfo, pWInfo->pOrderBy, pFrom,
137138 WHERE_ORDERBY_LIMIT, nLoop-1, pFrom->aLoop[nLoop-1], &m);
137154 pFrom, 0, nLoop-1, pFrom->aLoop[nLoop-1], &revMask
137165 pWInfo->nRowOut = pFrom->nRow;
140862 SrcList *pFrom;
140866 pFrom = sqlite3SrcListAppendFromTerm(pParse,0,0,0,&x,pRhs,0,0);
140867 pRhs = sqlite3SelectNew(pParse,0,pFrom,0,0,0,0,0,0);
160166 static int fts3SegReaderRequire(Fts3SegReader *pReader, char *pFrom, int nByte){
160169 || (pFrom>=pReader->aNode && pFrom<&pReader->aNode[pReader->nNode])
160172 && (pFrom - pReader->aNode + nByte)>pReader->nPopulate