Home | History | Annotate | Download | only in dist

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;
55198 ** on page pFrom to page pTo. If page pFrom was not a leaf page, then
55200 ** parent page stored in the pointer map is page pTo. If pFrom contained
55202 ** map entries are also updated so that the parent page is page pTo.
55205 ** MemPage.apOvfl[] array), they are not copied to pTo.
55207 ** Before returning, page pTo is reinitialized using btreeInitPage().
55213 static void copyNodeContent(MemPage *pFrom, MemPage *pTo, int *pRC){
55217 u8 * const aTo = pTo->aData;
55219 int const iToHdr = ((pTo->pgno==1) ? 100 : 0);
55228 /* Copy the b-tree node content from page pFrom to page pTo. */
55233 /* Reinitialize page pTo so that the contents of the MemPage structure
55234 ** match the new data. The initialization of pTo can actually fail under
55238 pTo->isInit = 0;
55239 rc = btreeInitPage(pTo);
55246 ** for any b-tree or overflow pages that pTo now contains the pointers to.
55249 *pRC = setChildPtrmaps(pTo);
58311 ** The size of file pTo may be reduced by this operation. If anything
58312 ** goes wrong, the transaction on pTo is rolled back. If successful, the
58315 SQLITE_PRIVATE int sqlite3BtreeCopyFile(Btree *pTo, Btree *pFrom){
58317 sqlite3_file *pFd; /* File descriptor for database pTo */
58319 sqlite3BtreeEnter(pTo);
58322 assert( sqlite3BtreeIsInTrans(pTo) );
58323 pFd = sqlite3PagerFile(sqlite3BtreePager(pTo));
58339 b.pDest = pTo;
58353 pTo->pBt->btsFlags &= ~BTS_PAGESIZE_FIXED;
58358 assert( sqlite3BtreeIsInTrans(pTo)==0 );
58361 sqlite3BtreeLeave(pTo);
58977 ** Make an shallow copy of pFrom into pTo. Prior contents of
58978 ** pTo are freed. The pFrom->z field is not duplicated. If
58979 ** pFrom->z is used, then pTo->z points to the same thing as pFrom->z
58982 SQLITE_PRIVATE void sqlite3VdbeMemShallowCopy(Mem *pTo, const Mem *pFrom, int srcType){
58984 VdbeMemRelease(pTo);
58985 memcpy(pTo, pFrom, MEMCELLSIZE);
58986 pTo->xDel = 0;
58988 pTo->flags &= ~(MEM_Dyn|MEM_Static|MEM_Ephem);
58990 pTo->flags |= srcType;
58995 ** Make a full copy of pFrom into pTo. Prior contents of pTo are
58998 SQLITE_PRIVATE int sqlite3VdbeMemCopy(Mem *pTo, const Mem *pFrom){
59002 VdbeMemRelease(pTo);
59003 memcpy(pTo, pFrom, MEMCELLSIZE);
59004 pTo->flags &= ~MEM_Dyn;
59006 if( pTo->flags&(MEM_Str|MEM_Blob) ){
59008 pTo->flags |= MEM_Ephem;
59009 rc = sqlite3VdbeMemMakeWriteable(pTo);
59017 ** Transfer the contents of pFrom to pTo. Any existing value in pTo is
59022 SQLITE_PRIVATE void sqlite3VdbeMemMove(Mem *pTo, Mem *pFrom){
59024 assert( pTo->db==0 || sqlite3_mutex_held(pTo->db->mutex) );
59025 assert( pFrom->db==0 || pTo->db==0 || pFrom->db==pTo->db );
59027 sqlite3VdbeMemRelease(pTo);
59028 memcpy(pTo, pFrom, sizeof(Mem));
63979 Vdbe *pTo = (Vdbe*)pToStmt;
63981 assert( pTo->db==pFrom->db );
63982 assert( pTo->nVar==pFrom->nVar );
63983 sqlite3_mutex_enter(pTo->db->mutex);
63985 sqlite3VdbeMemMove(&pTo->aVar[i], &pFrom->aVar[i]);
63987 sqlite3_mutex_leave(pTo->db->mutex);
64006 Vdbe *pTo = (Vdbe*)pToStmt;
64007 if( pFrom->nVar!=pTo->nVar ){
64010 if( pTo->isPrepareV2 && pTo->expmask ){
64011 pTo->expired = 1;
83390 ** connect the key to the last column inserted. pTo is the name of
83392 ** pTo table that the foreign key points to. flags contains all
83405 Token *pTo, /* Name of the other table */
83419 assert( pTo!=0 );
83427 pTo);
83439 nByte = sizeof(*pFKey) + (nCol-1)*sizeof(pFKey->aCol[0]) + pTo->n + 1;
83453 memcpy(z, pTo->z, pTo->n);
83454 z[pTo->n] = 0;
83456 z += pTo->n+1;
88471 Table *pTo; /* Parent table of foreign key pFKey */
88472 Index *pIdx = 0; /* Index on key columns in pTo */
88484 pTo = sqlite3FindTable(db, pFKey->zTo, zDb);
88486 pTo = sqlite3LocateTable(pParse, 0, pFKey->zTo, zDb);
88488 if( !pTo || locateFkeyIndex(pParse, pTo, pFKey, &pIdx, &aiFree) ){
88491 if( pTo==0 ){
88527 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zName;
88528 rcauth = sqlite3AuthReadCol(pParse, pTo->zName, zCol, iDb);
88537 sqlite3TableLock(pParse, iDb, pTo->tnum, 0, pTo->zName);
88544 fkLookupParent(pParse, iDb, pTo, pIdx, pFKey, aiCol, regOld, -1,isIgnore);
88549 fkLookupParent(pParse, iDb, pTo, pIdx, pFKey, aiCol, regNew, +1,isIgnore);
100122 ** from pFrom to pTo.
100124 static void transferParseError(Parse *pTo, Parse *pFrom){
100126 assert( pTo->zErrMsg==0 || pTo->nErr );
100127 if( pTo->nErr==0 ){
100128 pTo->zErrMsg = pFrom->zErrMsg;
100129 pTo->nErr = pFrom->nErr;