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;
55215 ** on page pFrom to page pTo. If page pFrom was not a leaf page, then
55217 ** parent page stored in the pointer map is page pTo. If pFrom contained
55219 ** map entries are also updated so that the parent page is page pTo.
55222 ** MemPage.apOvfl[] array), they are not copied to pTo.
55224 ** Before returning, page pTo is reinitialized using btreeInitPage().
55230 static void copyNodeContent(MemPage *pFrom, MemPage *pTo, int *pRC){
55234 u8 * const aTo = pTo->aData;
55236 int const iToHdr = ((pTo->pgno==1) ? 100 : 0);
55245 /* Copy the b-tree node content from page pFrom to page pTo. */
55250 /* Reinitialize page pTo so that the contents of the MemPage structure
55251 ** match the new data. The initialization of pTo can actually fail under
55255 pTo->isInit = 0;
55256 rc = btreeInitPage(pTo);
55263 ** for any b-tree or overflow pages that pTo now contains the pointers to.
55266 *pRC = setChildPtrmaps(pTo);
58328 ** The size of file pTo may be reduced by this operation. If anything
58329 ** goes wrong, the transaction on pTo is rolled back. If successful, the
58332 SQLITE_PRIVATE int sqlite3BtreeCopyFile(Btree *pTo, Btree *pFrom){
58334 sqlite3_file *pFd; /* File descriptor for database pTo */
58336 sqlite3BtreeEnter(pTo);
58339 assert( sqlite3BtreeIsInTrans(pTo) );
58340 pFd = sqlite3PagerFile(sqlite3BtreePager(pTo));
58356 b.pDest = pTo;
58370 pTo->pBt->btsFlags &= ~BTS_PAGESIZE_FIXED;
58375 assert( sqlite3BtreeIsInTrans(pTo)==0 );
58378 sqlite3BtreeLeave(pTo);
58994 ** Make an shallow copy of pFrom into pTo. Prior contents of
58995 ** pTo are freed. The pFrom->z field is not duplicated. If
58996 ** pFrom->z is used, then pTo->z points to the same thing as pFrom->z
58999 SQLITE_PRIVATE void sqlite3VdbeMemShallowCopy(Mem *pTo, const Mem *pFrom, int srcType){
59001 VdbeMemRelease(pTo);
59002 memcpy(pTo, pFrom, MEMCELLSIZE);
59003 pTo->xDel = 0;
59005 pTo->flags &= ~(MEM_Dyn|MEM_Static|MEM_Ephem);
59007 pTo->flags |= srcType;
59012 ** Make a full copy of pFrom into pTo. Prior contents of pTo are
59015 SQLITE_PRIVATE int sqlite3VdbeMemCopy(Mem *pTo, const Mem *pFrom){
59019 VdbeMemRelease(pTo);
59020 memcpy(pTo, pFrom, MEMCELLSIZE);
59021 pTo->flags &= ~MEM_Dyn;
59023 if( pTo->flags&(MEM_Str|MEM_Blob) ){
59025 pTo->flags |= MEM_Ephem;
59026 rc = sqlite3VdbeMemMakeWriteable(pTo);
59034 ** Transfer the contents of pFrom to pTo. Any existing value in pTo is
59039 SQLITE_PRIVATE void sqlite3VdbeMemMove(Mem *pTo, Mem *pFrom){
59041 assert( pTo->db==0 || sqlite3_mutex_held(pTo->db->mutex) );
59042 assert( pFrom->db==0 || pTo->db==0 || pFrom->db==pTo->db );
59044 sqlite3VdbeMemRelease(pTo);
59045 memcpy(pTo, pFrom, sizeof(Mem));
63996 Vdbe *pTo = (Vdbe*)pToStmt;
63998 assert( pTo->db==pFrom->db );
63999 assert( pTo->nVar==pFrom->nVar );
64000 sqlite3_mutex_enter(pTo->db->mutex);
64002 sqlite3VdbeMemMove(&pTo->aVar[i], &pFrom->aVar[i]);
64004 sqlite3_mutex_leave(pTo->db->mutex);
64023 Vdbe *pTo = (Vdbe*)pToStmt;
64024 if( pFrom->nVar!=pTo->nVar ){
64027 if( pTo->isPrepareV2 && pTo->expmask ){
64028 pTo->expired = 1;
83415 ** connect the key to the last column inserted. pTo is the name of
83417 ** pTo table that the foreign key points to. flags contains all
83430 Token *pTo, /* Name of the other table */
83444 assert( pTo!=0 );
83452 p->aCol[iCol].zName, pTo);
83464 nByte = sizeof(*pFKey) + (nCol-1)*sizeof(pFKey->aCol[0]) + pTo->n + 1;
83478 memcpy(z, pTo->z, pTo->n);
83479 z[pTo->n] = 0;
83481 z += pTo->n+1;
88496 Table *pTo; /* Parent table of foreign key pFKey */
88497 Index *pIdx = 0; /* Index on key columns in pTo */
88509 pTo = sqlite3FindTable(db, pFKey->zTo, zDb);
88511 pTo = sqlite3LocateTable(pParse, 0, pFKey->zTo, zDb);
88513 if( !pTo || locateFkeyIndex(pParse, pTo, pFKey, &pIdx, &aiFree) ){
88516 if( pTo==0 ){
88552 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zName;
88553 rcauth = sqlite3AuthReadCol(pParse, pTo->zName, zCol, iDb);
88562 sqlite3TableLock(pParse, iDb, pTo->tnum, 0, pTo->zName);
88569 fkLookupParent(pParse, iDb, pTo, pIdx, pFKey, aiCol, regOld, -1,isIgnore);
88574 fkLookupParent(pParse, iDb, pTo, pIdx, pFKey, aiCol, regNew, +1,isIgnore);
100147 ** from pFrom to pTo.
100149 static void transferParseError(Parse *pTo, Parse *pFrom){
100151 assert( pTo->zErrMsg==0 || pTo->nErr );
100152 if( pTo->nErr==0 ){
100153 pTo->zErrMsg = pFrom->zErrMsg;
100154 pTo->nErr = pFrom->nErr;