Lines Matching defs:pDest

325   Table *pDest,         /* The table we are inserting into */
328 int iDbDest /* The database of pDest */
1541 ** for index pDest in an insert transfer optimization. The rules
1549 static int xferCompatibleIndex(Index *pDest, Index *pSrc){
1551 assert( pDest && pSrc );
1552 assert( pDest->pTable!=pSrc->pTable );
1553 if( pDest->nColumn!=pSrc->nColumn ){
1556 if( pDest->onError!=pSrc->onError ){
1560 if( pSrc->aiColumn[i]!=pDest->aiColumn[i] ){
1563 if( pSrc->aSortOrder[i]!=pDest->aSortOrder[i] ){
1566 if( !xferCompatibleCollation(pSrc->azColl[i],pDest->azColl[i]) ){
1608 Table *pDest, /* The table we are inserting into */
1611 int iDbDest /* The database of pDest */
1621 int emptyDestTest; /* Address of test for empty pDest */
1626 int destHasUniqueIdx = 0; /* True if pDest has a UNIQUE index */
1632 if( sqlite3TriggerList(pParse, pDest) ){
1636 if( pDest->tabFlags & TF_Virtual ){
1693 if( pSrc==pDest ){
1704 if( pDest->nCol!=pSrc->nCol ){
1707 if( pDest->iPKey!=pSrc->iPKey ){
1710 for(i=0; i<pDest->nCol; i++){
1711 if( pDest->aCol[i].affinity!=pSrc->aCol[i].affinity ){
1714 if( !xferCompatibleCollation(pDest->aCol[i].zColl, pSrc->aCol[i].zColl) ){
1717 if( pDest->aCol[i].notNull && !pSrc->aCol[i].notNull ){
1721 for(pDestIdx=pDest->pIndex; pDestIdx; pDestIdx=pDestIdx->pNext){
1733 if( pDest->pCheck && sqlite3ExprCompare(pSrc->pCheck, pDest->pCheck) ){
1754 regAutoinc = autoIncBegin(pParse, iDbDest, pDest);
1755 sqlite3OpenTable(pParse, iDest, iDbDest, pDest, OP_OpenWrite);
1756 if( (pDest->iPKey<0 && pDest->pIndex!=0) || destHasUniqueIdx ){
1777 if( pDest->iPKey>=0 ){
1784 }else if( pDest->pIndex==0 ){
1788 assert( (pDest->tabFlags & TF_Autoincrement)==0 );
1793 sqlite3VdbeChangeP4(v, -1, pDest->zName, 0);
1795 for(pDestIdx=pDest->pIndex; pDestIdx; pDestIdx=pDestIdx->pNext){