• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/sqlite/

Lines Matching defs:pTo

15806     sqlite3_mutex_methods *pTo = &sqlite3GlobalConfig.mutex;
15813 memcpy(pTo, pFrom, offsetof(sqlite3_mutex_methods, xMutexAlloc));
15814 memcpy(&pTo->xMutexFree, &pFrom->xMutexFree,
15815 sizeof(*pTo) - offsetof(sqlite3_mutex_methods, xMutexFree));
15816 pTo->xMutexAlloc = pFrom->xMutexAlloc;
50218 ** on page pFrom to page pTo. If page pFrom was not a leaf page, then
50220 ** parent page stored in the pointer map is page pTo. If pFrom contained
50222 ** map entries are also updated so that the parent page is page pTo.
50225 ** MemPage.aOvfl[] array), they are not copied to pTo.
50227 ** Before returning, page pTo is reinitialized using btreeInitPage().
50233 static void copyNodeContent(MemPage *pFrom, MemPage *pTo, int *pRC){
50237 u8 * const aTo = pTo->aData;
50239 int const iToHdr = ((pTo->pgno==1) ? 100 : 0);
50248 /* Copy the b-tree node content from page pFrom to page pTo. */
50253 /* Reinitialize page pTo so that the contents of the MemPage structure
50254 ** match the new data. The initialization of pTo can actually fail under
50258 pTo->isInit = 0;
50259 rc = btreeInitPage(pTo);
50266 ** for any b-tree or overflow pages that pTo now contains the pointers to.
50269 *pRC = setChildPtrmaps(pTo);
53238 ** The size of file pTo may be reduced by this operation. If anything
53239 ** goes wrong, the transaction on pTo is rolled back. If successful, the
53242 SQLITE_PRIVATE int sqlite3BtreeCopyFile(Btree *pTo, Btree *pFrom){
53245 sqlite3BtreeEnter(pTo);
53256 b.pDest = pTo;
53270 pTo->pBt->pageSizeFixed = 0;
53274 sqlite3BtreeLeave(pTo);
53880 ** Make an shallow copy of pFrom into pTo. Prior contents of
53881 ** pTo are freed. The pFrom->z field is not duplicated. If
53882 ** pFrom->z is used, then pTo->z points to the same thing as pFrom->z
53885 SQLITE_PRIVATE void sqlite3VdbeMemShallowCopy(Mem *pTo, const Mem *pFrom, int srcType){
53887 sqlite3VdbeMemReleaseExternal(pTo);
53888 memcpy(pTo, pFrom, MEMCELLSIZE);
53889 pTo->xDel = 0;
53891 pTo->flags &= ~(MEM_Dyn|MEM_Static|MEM_Ephem);
53893 pTo->flags |= srcType;
53898 ** Make a full copy of pFrom into pTo. Prior contents of pTo are
53901 SQLITE_PRIVATE int sqlite3VdbeMemCopy(Mem *pTo, const Mem *pFrom){
53905 sqlite3VdbeMemReleaseExternal(pTo);
53906 memcpy(pTo, pFrom, MEMCELLSIZE);
53907 pTo->flags &= ~MEM_Dyn;
53909 if( pTo->flags&(MEM_Str|MEM_Blob) ){
53911 pTo->flags |= MEM_Ephem;
53912 rc = sqlite3VdbeMemMakeWriteable(pTo);
53920 ** Transfer the contents of pFrom to pTo. Any existing value in pTo is
53925 SQLITE_PRIVATE void sqlite3VdbeMemMove(Mem *pTo, Mem *pFrom){
53927 assert( pTo->db==0 || sqlite3_mutex_held(pTo->db->mutex) );
53928 assert( pFrom->db==0 || pTo->db==0 || pFrom->db==pTo->db );
53930 sqlite3VdbeMemRelease(pTo);
53931 memcpy(pTo, pFrom, sizeof(Mem));
58758 Vdbe *pTo = (Vdbe*)pToStmt;
58760 assert( pTo->db==pFrom->db );
58761 assert( pTo->nVar==pFrom->nVar );
58762 sqlite3_mutex_enter(pTo->db->mutex);
58764 sqlite3VdbeMemMove(&pTo->aVar[i], &pFrom->aVar[i]);
58766 sqlite3_mutex_leave(pTo->db->mutex);
58785 Vdbe *pTo = (Vdbe*)pToStmt;
58786 if( pFrom->nVar!=pTo->nVar ){
58789 if( pTo->isPrepareV2 && pTo->expmask ){
58790 pTo->expired = 1;
75841 ** connect the key to the last column inserted. pTo is the name of
75843 ** pTo table that the foreign key points to. flags contains all
75856 Token *pTo, /* Name of the other table */
75870 assert( pTo!=0 );
75878 p->aCol[iCol].zName, pTo);
75890 nByte = sizeof(*pFKey) + (nCol-1)*sizeof(pFKey->aCol[0]) + pTo->n + 1;
75904 memcpy(z, pTo->z, pTo->n);
75905 z[pTo->n] = 0;
75907 z += pTo->n+1;
80815 Table *pTo; /* Parent table of foreign key pFKey */
80816 Index *pIdx = 0; /* Index on key columns in pTo */
80828 pTo = sqlite3FindTable(db, pFKey->zTo, zDb);
80830 pTo = sqlite3LocateTable(pParse, 0, pFKey->zTo, zDb);
80832 if( !pTo || locateFkeyIndex(pParse, pTo, pFKey, &pIdx, &aiFree) ){
80854 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zName;
80855 rcauth = sqlite3AuthReadCol(pParse, pTo->zName, zCol, iDb);
80864 sqlite3TableLock(pParse, iDb, pTo->tnum, 0, pTo->zName);
80871 fkLookupParent(pParse, iDb, pTo, pIdx, pFKey, aiCol, regOld, -1,isIgnore);
80876 fkLookupParent(pParse, iDb, pTo, pIdx, pFKey, aiCol, regNew, +1,isIgnore);
91920 ** from pFrom to pTo.
91922 static void transferParseError(Parse *pTo, Parse *pFrom){
91924 assert( pTo->zErrMsg==0 || pTo->nErr );
91925 if( pTo->nErr==0 ){
91926 pTo->zErrMsg = pFrom->zErrMsg;
91927 pTo->nErr = pFrom->nErr;