Home | History | Annotate | Download | only in dist

Lines Matching refs:pTo

14434       sqlite3_mutex_methods *pTo = &sqlite3GlobalConfig.mutex;
14436 memcpy(pTo, pFrom, offsetof(sqlite3_mutex_methods, xMutexAlloc));
14437 memcpy(&pTo->xMutexFree, &pFrom->xMutexFree,
14438 sizeof(*pTo) - offsetof(sqlite3_mutex_methods, xMutexFree));
14439 pTo->xMutexAlloc = pFrom->xMutexAlloc;
43357 ** on page pFrom to page pTo. If page pFrom was not a leaf page, then
43359 ** parent page stored in the pointer map is page pTo. If pFrom contained
43361 ** map entries are also updated so that the parent page is page pTo.
43364 ** MemPage.aOvfl[] array), they are not copied to pTo.
43366 ** Before returning, page pTo is reinitialized using btreeInitPage().
43372 static void copyNodeContent(MemPage *pFrom, MemPage *pTo, int *pRC){
43376 u8 * const aTo = pTo->aData;
43378 int const iToHdr = ((pTo->pgno==1) ? 100 : 0);
43387 /* Copy the b-tree node content from page pFrom to page pTo. */
43392 /* Reinitialize page pTo so that the contents of the MemPage structure
43393 ** match the new data. The initialization of pTo can actually fail under
43397 pTo->isInit = 0;
43398 rc = btreeInitPage(pTo);
43405 ** for any b-tree or overflow pages that pTo now contains the pointers to.
43408 *pRC = setChildPtrmaps(pTo);
46281 ** The size of file pTo may be reduced by this operation. If anything
46282 ** goes wrong, the transaction on pTo is rolled back. If successful, the
46285 SQLITE_PRIVATE int sqlite3BtreeCopyFile(Btree *pTo, Btree *pFrom){
46288 sqlite3BtreeEnter(pTo);
46299 b.pDest = pTo;
46313 pTo->pBt->pageSizeFixed = 0;
46317 sqlite3BtreeLeave(pTo);
46911 ** Make an shallow copy of pFrom into pTo. Prior contents of
46912 ** pTo are freed. The pFrom->z field is not duplicated. If
46913 ** pFrom->z is used, then pTo->z points to the same thing as pFrom->z
46916 SQLITE_PRIVATE void sqlite3VdbeMemShallowCopy(Mem *pTo, const Mem *pFrom, int srcType){
46918 sqlite3VdbeMemReleaseExternal(pTo);
46919 memcpy(pTo, pFrom, MEMCELLSIZE);
46920 pTo->xDel = 0;
46922 pTo->flags &= ~(MEM_Dyn|MEM_Static|MEM_Ephem);
46924 pTo->flags |= srcType;
46929 ** Make a full copy of pFrom into pTo. Prior contents of pTo are
46932 SQLITE_PRIVATE int sqlite3VdbeMemCopy(Mem *pTo, const Mem *pFrom){
46936 sqlite3VdbeMemReleaseExternal(pTo);
46937 memcpy(pTo, pFrom, MEMCELLSIZE);
46938 pTo->flags &= ~MEM_Dyn;
46940 if( pTo->flags&(MEM_Str|MEM_Blob) ){
46942 pTo->flags |= MEM_Ephem;
46943 rc = sqlite3VdbeMemMakeWriteable(pTo);
46951 ** Transfer the contents of pFrom to pTo. Any existing value in pTo is
46956 SQLITE_PRIVATE void sqlite3VdbeMemMove(Mem *pTo, Mem *pFrom){
46958 assert( pTo->db==0 || sqlite3_mutex_held(pTo->db->mutex) );
46959 assert( pFrom->db==0 || pTo->db==0 || pFrom->db==pTo->db );
46961 sqlite3VdbeMemRelease(pTo);
46962 memcpy(pTo, pFrom, sizeof(Mem));
51714 Vdbe *pTo = (Vdbe*)pToStmt;
51716 assert( pTo->db==pFrom->db );
51717 assert( pTo->nVar==pFrom->nVar );
51718 sqlite3_mutex_enter(pTo->db->mutex);
51720 sqlite3VdbeMemMove(&pTo->aVar[i], &pFrom->aVar[i]);
51722 sqlite3_mutex_leave(pTo->db->mutex);
51741 Vdbe *pTo = (Vdbe*)pToStmt;
51742 if( pFrom->nVar!=pTo->nVar ){
51745 if( pTo->isPrepareV2 && pTo->expmask ){
51746 pTo->expired = 1;
68614 ** connect the key to the last column inserted. pTo is the name of
68616 ** pTo table that the foreign key points to. flags contains all
68629 Token *pTo, /* Name of the other table */
68643 assert( pTo!=0 );
68651 p->aCol[iCol].zName, pTo);
68663 nByte = sizeof(*pFKey) + (nCol-1)*sizeof(pFKey->aCol[0]) + pTo->n + 1;
68677 memcpy(z, pTo->z, pTo->n);
68678 z[pTo->n] = 0;
68680 z += pTo->n+1;
73511 Table *pTo; /* Parent table of foreign key pFKey */
73512 Index *pIdx = 0; /* Index on key columns in pTo */
73524 pTo = sqlite3FindTable(db, pFKey->zTo, zDb);
73526 pTo = sqlite3LocateTable(pParse, 0, pFKey->zTo, zDb);
73528 if( !pTo || locateFkeyIndex(pParse, pTo, pFKey, &pIdx, &aiFree) ){
73550 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zName;
73551 rcauth = sqlite3AuthReadCol(pParse, pTo->zName, zCol, iDb);
73560 sqlite3TableLock(pParse, iDb, pTo->tnum, 0, pTo->zName);
73567 fkLookupParent(pParse, iDb, pTo, pIdx, pFKey, aiCol, regOld, -1,isIgnore);
73572 fkLookupParent(pParse, iDb, pTo, pIdx, pFKey, aiCol, regNew, +1,isIgnore);
84491 ** from pFrom to pTo.
84493 static void transferParseError(Parse *pTo, Parse *pFrom){
84495 assert( pTo->zErrMsg==0 || pTo->nErr );
84496 if( pTo->nErr==0 ){
84497 pTo->zErrMsg = pFrom->zErrMsg;
84498 pTo->nErr = pFrom->nErr;