Lines Matching refs:pDestDb
84839 sqlite3* pDestDb; /* Destination database handle */ member
84957 sqlite3* pDestDb, /* Database to write to */ argument
84965 if( !sqlite3SafetyCheckOk(pSrcDb)||!sqlite3SafetyCheckOk(pDestDb) ){
84980 sqlite3_mutex_enter(pDestDb->mutex);
84982 if( pSrcDb==pDestDb ){
84984 pDestDb, SQLITE_ERROR, "source and destination must be distinct"
84996 sqlite3Error(pDestDb, SQLITE_NOMEM_BKPT);
85010 Btree *pDest = findBtree(pDestDb, pDestDb, zDestDb);
85011 p->pSrc = findBtree(pDestDb, pSrcDb, zSrcDb);
85012 p->pDestDb = pDestDb;
85018 || checkReadTransaction(pDestDb, pDest)!=SQLITE_OK
85033 sqlite3_mutex_leave(pDestDb->mutex);
85151 if( p->pDestDb ){
85152 sqlite3_mutex_enter(p->pDestDb->mutex);
85167 if( p->pDestDb && p->pSrc->pBt->inTransaction==TRANS_WRITE ){
85185 pDest = findBtree(p->pDestDb, p->pDestDb, p->zDestDb);
85268 if( p->pDestDb ){
85269 sqlite3ResetAllSchemasOfConnection(p->pDestDb);
85402 if( p->pDestDb ){
85403 sqlite3_mutex_leave(p->pDestDb->mutex);
85423 if( p->pDestDb ){
85424 sqlite3_mutex_enter(p->pDestDb->mutex);
85428 if( p->pDestDb ){
85448 if( p->pDestDb ){
85449 sqlite3Error(p->pDestDb, rc);
85452 sqlite3LeaveMutexAndCloseZombie(p->pDestDb);
85455 if( p->pDestDb ){
85519 assert( p->pDestDb );
85520 sqlite3_mutex_enter(p->pDestDb->mutex);
85522 sqlite3_mutex_leave(p->pDestDb->mutex);