Lines Matching defs:aRegIdx

118296   int *aRegIdx,      /* Only delete if aRegIdx!=0 && aRegIdx[i]>0 */
118311 if( aRegIdx!=0 && aRegIdx[i]==0 ) continue;
122829 int *aRegIdx = 0; /* One register allocated to each index */
123141 aRegIdx = sqlite3DbMallocRawNN(db, sizeof(int)*(nIdx+2));
123142 if( aRegIdx==0 ){
123147 aRegIdx[i] = ++pParse->nMem;
123150 aRegIdx[i] = ++pParse->nMem; /* Register to store the table record */
123421 sqlite3GenerateConstraintChecks(pParse, pTab, aRegIdx, iDataCur, iIdxCur,
123436 regIns, aRegIdx, 0, appendFlag, bUseSeek
123503 sqlite3DbFree(db, aRegIdx);
123676 ** registers identified by aRegIdx[]. No index entry is created for
123677 ** indices where aRegIdx[i]==0. The order of indices in aRegIdx[] is
123683 ** register identified by aRegIdx[nIdx] - in other words in the first
123684 ** entry of aRegIdx[] past the last index. It is important that the
123691 ** aRegIdx[] is not zero). iDataCur is the cursor for the main table when
123740 int *aRegIdx, /* Use register aRegIdx[i] for index i. 0 for unused */
124000 assert( aRegIdx[nIdx]>0 );
124238 if( aRegIdx[ix]==0 ) continue; /* Skip indices that do not change */
124256 sqlite3VdbeAddOp2(v, OP_Null, 0, aRegIdx[ix]);
124264 ** the insert or update. Store that record in the aRegIdx[ix] register
124266 regIdx = aRegIdx[ix]+1;
124286 sqlite3VdbeAddOp3(v, OP_MakeRecord, regIdx, pIdx->nColumn, aRegIdx[ix]);
124549 int regRec = aRegIdx[ix];
124624 int *aRegIdx, /* Register used by each index. 0 for unused indices */
124647 if( aRegIdx[i]==0 ) continue;
124649 sqlite3VdbeAddOp2(v, OP_IsNull, aRegIdx[i], sqlite3VdbeCurrentAddr(v)+2);
124658 codeWithoutRowidPreupdate(pParse, pTab, iIdxCur+i, aRegIdx[i]);
124661 sqlite3VdbeAddOp4Int(v, OP_IdxInsert, iIdxCur+i, aRegIdx[i],
124662 aRegIdx[i]+1,
124679 sqlite3VdbeAddOp3(v, OP_Insert, iDataCur, aRegIdx[i], regNewData);
140225 int *aRegIdx = 0; /* Registers for to each index and the main table */
140345 /* Allocate space for aXRef[], aRegIdx[], and aToOpen[].
140350 aRegIdx = aXRef+pTab->nCol;
140351 aToOpen = (u8*)(aRegIdx+nIdx+1);
140470 /* There is one entry in the aRegIdx[] array for each index on the table
140471 ** being updated. Fill in aRegIdx[] with a register number that will hold
140496 aRegIdx[nAllIdx] = reg;
140498 aRegIdx[nAllIdx] = ++pParse->nMem; /* Register storing the table record */
140510 /* For now, regRowSet and aRegIdx[nAllIdx] share the same register.
140511 ** If regRowSet turns out to be needed, then aRegIdx[nAllIdx] will be
140512 ** reallocated. aRegIdx[nAllIdx] is the register in which the main
140515 assert( aRegIdx[nAllIdx]==pParse->nMem );
140516 regRowSet = aRegIdx[nAllIdx];
140673 aRegIdx[nAllIdx] = ++pParse->nMem;
140919 sqlite3GenerateConstraintChecks(pParse, pTab, aRegIdx, iDataCur, iIdxCur,
140941 sqlite3GenerateRowIndexDelete(pParse, pTab, iDataCur, iIdxCur, aRegIdx, -1);
140986 pParse, pTab, iDataCur, iIdxCur, regNewRowid, aRegIdx,
141042 sqlite3DbFree(db, aXRef); /* Also frees aRegIdx[] and aToOpen[] */