Lines Matching refs:nKeyCol
17763 u16 nKeyCol; /* Number of columns forming the key */ member
90237 int nKeyCol;
90243 nKeyCol = pOp->p4.i;
90245 rc = sqlite3VdbeSorterCompare(pC, pIn3, nKeyCol, &res);
93373 for(j=0; j<pIdx->nKeyCol; j++){
96386 int nKeyCol, /* Compare this many columns */
96402 r2->nField = nKeyCol;
96404 assert( r2->nField==nKeyCol );
96408 for(i=0; i<nKeyCol; i++){
102108 if( pIdx->nKeyCol>nExpr
107517 int nKeyCol; /* Number of index columns w/o the pk/rowid */
107637 int nKeyCol; /* Number of key columns */
107651 nKeyCol = sqlite3_value_int(argv[1]);
107652 assert( nKeyCol<=nCol );
107653 assert( nKeyCol>0 );
107678 p->nKeyCol = nKeyCol;
108088 char *zRet = sqlite3MallocZero( (p->nKeyCol+1)*25 );
108097 for(i=0; i<p->nKeyCol; i++){
108276 nCol = pIdx->nKeyCol;
108282 nColTest = pIdx->uniqNotNull ? pIdx->nKeyCol-1 : nCol-1;
108342 sqlite3VdbeAddOp2(v, OP_Integer, pIdx->nKeyCol, regRowid);
108389 if( nColTest==1 && pIdx->nKeyCol==1 && IsUniqueIndex(pIdx) ){
108442 regKey = sqlite3GetTempRange(pParse, pPk->nKeyCol);
108443 for(j=0; j<pPk->nKeyCol; j++){
108449 sqlite3VdbeAddOp3(v, OP_MakeRecord, regKey, pPk->nKeyCol, regRowid);
108450 sqlite3ReleaseTempRange(pParse, regKey, pPk->nKeyCol);
108781 int nCol = pIndex->nKeyCol+1;
108865 if( !pIdx->aiRowEst || iCol>=pIdx->nKeyCol || pIdx->aiRowEst[iCol+1]==0 ){
108963 assert( !HasRowid(pIdx->pTable) || pIdx->nColumn==pIdx->nKeyCol+1 );
108965 nIdxCol = pIdx->nKeyCol;
111353 assert( pIdx->nKeyCol==1 && pIdx->onError!=OE_None );
111685 assert( pIdx->nKeyCol==1 );
111979 assert( iCol<MAX(pPk->nColumn,pPk->nKeyCol) );
112103 assert( pPk->nKeyCol==1 );
112113 for(i=j=1; i<pPk->nKeyCol; i++){
112123 pPk->nKeyCol = j;
112128 nPk = pPk->nColumn = pPk->nKeyCol;
112149 if( !isDupColumn(pIdx, pIdx->nKeyCol, pPk, i) ){
112150 testcase( hasColumn(pIdx->aiColumn, pIdx->nKeyCol, pPk->aiColumn[i]) );
112156 pIdx->nColumn = pIdx->nKeyCol;
112159 if( resizeIndexObject(db, pIdx, pIdx->nKeyCol+n) ) return;
112160 for(i=0, j=pIdx->nKeyCol; i<nPk; i++){
112161 if( !isDupColumn(pIdx, pIdx->nKeyCol, pPk, i) ){
112162 testcase( hasColumn(pIdx->aiColumn, pIdx->nKeyCol, pPk->aiColumn[i]) );
112172 assert( pIdx->nColumn>=pIdx->nKeyCol+n );
113371 sqlite3VdbeAddOp4(v, OP_SorterOpen, iSorter, 0, pIndex->nKeyCol, (char*)
113397 pIndex->nKeyCol); VdbeCoverage(v);
113462 p->nKeyCol = nCol - 1;
113728 nExtraCol = pPk ? pPk->nKeyCol : 1;
113745 pIndex->nKeyCol = pList->nExpr;
113775 for(i=0; i<pIndex->nKeyCol; i++, pListItem++){
113839 for(j=0; j<pPk->nKeyCol; j++){
113842 if( isDupColumn(pIndex, pIndex->nKeyCol, pPk, j) ){
113845 testcase( hasColumn(pIndex->aiColumn,pIndex->nKeyCol,x) );
113904 if( pIdx->nKeyCol!=pIndex->nKeyCol ) continue;
113905 for(k=0; k<pIdx->nKeyCol; k++){
113914 if( k==pIdx->nKeyCol ){
114101 int nCopy = MIN(ArraySize(aVal), pIdx->nKeyCol);
114117 for(i=nCopy+1; i<=pIdx->nKeyCol; i++){
114122 if( IsUniqueIndex(pIdx) ) a[pIdx->nKeyCol] = 0;
114852 for(j=0; j<pIdx->nKeyCol; j++){
115032 int nKey = pIdx->nKeyCol;
115868 if( pPk->nKeyCol==1 ){
115874 for(i=0; i<pPk->nKeyCol; i++){
116120 nPk = pPk->nKeyCol;
116538 pIdx->uniqNotNull ? pIdx->nKeyCol : pIdx->nColumn);
116604 nCol = (prefixOnly && pIdx->uniqNotNull) ? pIdx->nKeyCol : pIdx->nColumn;
118926 if( pIdx->nKeyCol==nCol && IsUniqueIndex(pIdx) && pIdx->pPartIdxWhere==0 ){
119267 assert( pIdx==0 || pIdx->nKeyCol==pFKey->nCol );
119326 for(i=0; i<pIdx->nKeyCol; i++){
119786 for(i=0; i<pIdx->nKeyCol; i++){
121697 nPkField = pPk->nKeyCol;
122199 regIdx, pIdx->nKeyCol); VdbeCoverage(v);
122218 for(i=0; i<pPk->nKeyCol; i++){
122234 int addrJump = sqlite3VdbeCurrentAddr(v)+pPk->nKeyCol;
122238 for(i=0; i<pPk->nKeyCol; i++){
122242 if( i==(pPk->nKeyCol-1) ){
122488 pIdx->uniqNotNull ? pIdx->nKeyCol: pIdx->nColumn);
122614 if( pDest->nKeyCol!=pSrc->nKeyCol || pDest->nColumn!=pSrc->nColumn ){
122620 for(i=0; i<pSrc->nKeyCol; i++){
126578 mx = pIdx->nKeyCol;
126592 i<pIdx->nKeyCol);
127051 for(kk=0; kk<pIdx->nKeyCol; kk++){
127062 pIdx->nKeyCol); VdbeCoverage(v);
129682 nKey = pPk->nKeyCol;
130372 assert( sqlite3PrimaryKeyIndex(pTab)->nKeyCol==nKey );
137454 for(i=0; i<pIdx->nKeyCol; i++){
137551 nPk = pPk->nKeyCol;
138058 assert( pPk->nKeyCol==1 );
138260 if( pTarget->nExpr!=pIdx->nKeyCol ) continue;
138268 nn = pIdx->nKeyCol;
138343 int nPk = pPk->nKeyCol;
139628 && sqlite3PrimaryKeyIndex(pNew)->nKeyCol!=1
142458 if( (nEq<pIdx->nKeyCol && bRev==(pIdx->aSortOrder[nEq]==SQLITE_SO_ASC))
142459 || (bRev && pIdx->nKeyCol==nEq)
142659 iRowidReg = sqlite3GetTempRange(pParse, pPk->nKeyCol);
142660 for(j=0; j<pPk->nKeyCol; j++){
142665 iRowidReg, pPk->nKeyCol); VdbeCoverage(v);
142836 sqlite3VdbeAddOp2(v, OP_OpenEphemeral, regRowset, pPk->nKeyCol);
142926 int nPk = pPk->nKeyCol;
144180 for(i=0; i<pIdx->nKeyCol; i++){
145366 for(i=0; i<pIdx->nKeyCol; i++){
145372 if( i==pIdx->nKeyCol ){
145523 int nKeyCol; /* Number of columns in the constructed index */
145555 nKeyCol = 0;
145584 if( whereLoopResize(pParse->db, pLoop, nKeyCol+1) ){
145587 pLoop->aLTerm[nKeyCol++] = pTerm;
145592 assert( nKeyCol>0 );
145593 pLoop->u.btree.nEq = pLoop->nLTerm = nKeyCol;
145610 if( extraCols & MASKBIT(i) ) nKeyCol++;
145613 nKeyCol += pTable->nCol - BMS + 1;
145617 pIdx = sqlite3AllocateIndexObject(pParse->db, nKeyCol+1, 0, &zNotUsed);
145659 assert( n==nKeyCol );
145666 sqlite3VdbeAddOp2(v, OP_OpenAutoindex, pLevel->iIdxCur, nKeyCol+1);
147319 if( IsUniqueIndex(pProbe) && saved_nEq==pProbe->nKeyCol-1 ){
147399 || (iCol>=0 && nInMul==0 && saved_nEq==pProbe->nKeyCol-1)
147402 || (pProbe->nKeyCol==1 && pProbe->onError && eOp==WO_EQ)
147581 && saved_nEq+1<pProbe->nKeyCol
147634 for(jj=0; jj<pIndex->nKeyCol; jj++){
147638 for(jj=0; jj<pIndex->nKeyCol; jj++){
147755 sPk.nKeyCol = 1;
148513 u16 nKeyCol; /* Number of key columns in pIndex */
148620 nKeyCol = 0;
148625 nKeyCol = pIndex->nKeyCol;
148627 assert( nColumn==nKeyCol+1 || !HasRowid(pIndex->pTable) );
148765 if( j==0 || j<nKeyCol ){
149322 || pIdx->nKeyCol>ArraySize(pLoop->aLTermSpace)
149325 for(j=0; j<pIdx->nKeyCol; j++){
149331 if( j!=pIdx->nKeyCol ) continue;