Home | History | Annotate | Download | only in orig

Lines Matching defs:pTo

17300     sqlite3_mutex_methods *pTo = &sqlite3GlobalConfig.mutex;
17307 memcpy(pTo, pFrom, offsetof(sqlite3_mutex_methods, xMutexAlloc));
17308 memcpy(&pTo->xMutexFree, &pFrom->xMutexFree,
17309 sizeof(*pTo) - offsetof(sqlite3_mutex_methods, xMutexFree));
17310 pTo->xMutexAlloc = pFrom->xMutexAlloc;
55187 ** on page pFrom to page pTo. If page pFrom was not a leaf page, then
55189 ** parent page stored in the pointer map is page pTo. If pFrom contained
55191 ** map entries are also updated so that the parent page is page pTo.
55194 ** MemPage.apOvfl[] array), they are not copied to pTo.
55196 ** Before returning, page pTo is reinitialized using btreeInitPage().
55202 static void copyNodeContent(MemPage *pFrom, MemPage *pTo, int *pRC){
55206 u8 * const aTo = pTo->aData;
55208 int const iToHdr = ((pTo->pgno==1) ? 100 : 0);
55217 /* Copy the b-tree node content from page pFrom to page pTo. */
55222 /* Reinitialize page pTo so that the contents of the MemPage structure
55223 ** match the new data. The initialization of pTo can actually fail under
55227 pTo->isInit = 0;
55228 rc = btreeInitPage(pTo);
55235 ** for any b-tree or overflow pages that pTo now contains the pointers to.
55238 *pRC = setChildPtrmaps(pTo);
58300 ** The size of file pTo may be reduced by this operation. If anything
58301 ** goes wrong, the transaction on pTo is rolled back. If successful, the
58304 SQLITE_PRIVATE int sqlite3BtreeCopyFile(Btree *pTo, Btree *pFrom){
58306 sqlite3_file *pFd; /* File descriptor for database pTo */
58308 sqlite3BtreeEnter(pTo);
58311 assert( sqlite3BtreeIsInTrans(pTo) );
58312 pFd = sqlite3PagerFile(sqlite3BtreePager(pTo));
58328 b.pDest = pTo;
58342 pTo->pBt->btsFlags &= ~BTS_PAGESIZE_FIXED;
58347 assert( sqlite3BtreeIsInTrans(pTo)==0 );
58350 sqlite3BtreeLeave(pTo);
58966 ** Make an shallow copy of pFrom into pTo. Prior contents of
58967 ** pTo are freed. The pFrom->z field is not duplicated. If
58968 ** pFrom->z is used, then pTo->z points to the same thing as pFrom->z
58971 SQLITE_PRIVATE void sqlite3VdbeMemShallowCopy(Mem *pTo, const Mem *pFrom, int srcType){
58973 VdbeMemRelease(pTo);
58974 memcpy(pTo, pFrom, MEMCELLSIZE);
58975 pTo->xDel = 0;
58977 pTo->flags &= ~(MEM_Dyn|MEM_Static|MEM_Ephem);
58979 pTo->flags |= srcType;
58984 ** Make a full copy of pFrom into pTo. Prior contents of pTo are
58987 SQLITE_PRIVATE int sqlite3VdbeMemCopy(Mem *pTo, const Mem *pFrom){
58991 VdbeMemRelease(pTo);
58992 memcpy(pTo, pFrom, MEMCELLSIZE);
58993 pTo->flags &= ~MEM_Dyn;
58995 if( pTo->flags&(MEM_Str|MEM_Blob) ){
58997 pTo->flags |= MEM_Ephem;
58998 rc = sqlite3VdbeMemMakeWriteable(pTo);
59006 ** Transfer the contents of pFrom to pTo. Any existing value in pTo is
59011 SQLITE_PRIVATE void sqlite3VdbeMemMove(Mem *pTo, Mem *pFrom){
59013 assert( pTo->db==0 || sqlite3_mutex_held(pTo->db->mutex) );
59014 assert( pFrom->db==0 || pTo->db==0 || pFrom->db==pTo->db );
59016 sqlite3VdbeMemRelease(pTo);
59017 memcpy(pTo, pFrom, sizeof(Mem));
63968 Vdbe *pTo = (Vdbe*)pToStmt;
63970 assert( pTo->db==pFrom->db );
63971 assert( pTo->nVar==pFrom->nVar );
63972 sqlite3_mutex_enter(pTo->db->mutex);
63974 sqlite3VdbeMemMove(&pTo->aVar[i], &pFrom->aVar[i]);
63976 sqlite3_mutex_leave(pTo->db->mutex);
63995 Vdbe *pTo = (Vdbe*)pToStmt;
63996 if( pFrom->nVar!=pTo->nVar ){
63999 if( pTo->isPrepareV2 && pTo->expmask ){
64000 pTo->expired = 1;
83379 ** connect the key to the last column inserted. pTo is the name of
83381 ** pTo table that the foreign key points to. flags contains all
83394 Token *pTo, /* Name of the other table */
83408 assert( pTo!=0 );
83416 p->aCol[iCol].zName, pTo);
83428 pTo->n + 1;
83442 memcpy(z, pTo->z, pTo->n);
83443 z[pTo->n] = 0;
83445 z += pTo->n+1;
88460 Table *pTo; /* Parent table of foreign key pFKey */
88461 Index *pIdx = 0; /* Index on key columns in pTo */
88473 pTo = sqlite3FindTable(db, pFKey->zTo, zDb);
88475 pTo = sqlite3LocateTable(pParse, 0, pFKey->zTo, zDb);
88477 if( !pTo || locateFkeyIndex(pParse, pTo, pFKey, &pIdx, &aiFree) ){
88480 if( pTo==0 ){
88516 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zName;
88517 rcauth = sqlite3AuthReadCol(pParse, pTo->zName, zCol, iDb);
88526 sqlite3TableLock(pParse, iDb, pTo->tnum, 0, pTo->zName);
88533 fkLookupParent(pParse, iDb, pTo, pIdx, pFKey, aiCol, regOld, -1,isIgnore);
88538 fkLookupParent(pParse, iDb, pTo, pIdx, pFKey, aiCol, regNew, +1,isIgnore);
100111 ** from pFrom to pTo.
100113 static void transferParseError(Parse *pTo, Parse *pFrom){
100115 assert( pTo->zErrMsg==0 || pTo->nErr );
100116 if( pTo->nErr==0 ){
100117 pTo->zErrMsg = pFrom->zErrMsg;
100118 pTo->nErr = pFrom->nErr;