Lines Matching refs:k

21996         int i, j, k, n, isnull;
22009 k = precision;
22010 for(i=n=0; k!=0 && (ch=escarg[i])!=0; i++, k--){
22026 k = i;
22027 for(i=0; i<k; i++){
22050 int k = va_arg(ap, int);
22051 struct SrcList_item *pItem = &pSrc->a[k];
22053 assert( k>=0 && k<pSrc->nSrc );
22573 char k[256];
22576 sqlite3OsRandomness(sqlite3_vfs_find(0), 256, k);
22581 wsdPrng.j += wsdPrng.s[i] + k[i];
24031 int i, k;
24033 for(k=i; sqlite3Isxdigit(z[k]); k++){
24034 u = u*16 + sqlite3HexToInt(z[k]);
24037 return (z[k]==0 && k-i<=16) ? 0 : 1;
54021 int k;
54022 k = pPage->aiOvfl[i];
54023 if( k<=iCell ){
54024 if( k==iCell ){
58321 u32 k; /* Number of leaves on the trunk of the freelist */
58402 k = get4byte(&pTrunk->aData[4]);
58403 if( k==0 && !searchList ){
58417 }else if( k>(u32)(pBt->usableSize/4 - 2) ){
58435 if( k==0 ){
58467 put4byte(&pNewTrunk->aData[4], k-1);
58468 memcpy(&pNewTrunk->aData[8], &pTrunk->aData[12], (k-1)*4);
58484 }else if( k>0 ){
58493 for(i=0; i<k; i++){
58503 for(i=1; i<k; i++){
58529 *pPgno, closest+1, k, pTrunk->pgno, n-1));
58532 if( closest<k-1 ){
58533 memcpy(&aData[8+closest*4], &aData[4+k*4], 4);
58535 put4byte(&aData[4], k-1);
59725 int i, j, k; /* Loop counters */
59970 for(subtotal=k=i=0; i<nCell; i++){
59974 szNew[k] = subtotal - szCell[i] - 2;
59975 cntNew[k] = i;
59978 k++;
59979 if( k>NB+1 ){ rc = SQLITE_CORRUPT_BKPT; goto balance_cleanup; }
59982 szNew[k] = subtotal;
59983 cntNew[k] = nCell;
59984 k++;
59997 for(i=k-1; i>0; i--){
60042 for(i=0; i<k; i++){
71158 int j, k;
71172 k = 2;
71173 sqlite3_snprintf(100, &zBuf[k], "%d", pMem->n);
71174 k += sqlite3Strlen30(&zBuf[k]);
71175 zBuf[k++] = '[';
71179 zBuf[k++] = c;
71181 zBuf[k++] = '.';
71184 zBuf[k++] = ']';
71185 sqlite3_snprintf(100,&zBuf[k], encnames[pMem->enc]);
71186 k += sqlite3Strlen30(&zBuf[k]);
71187 zBuf[k++] = 0;
72886 int k, mx = 0;
72887 for(k=0; k<n; k++) if( aPermute[k]>mx ) mx = aPermute[k];
81442 int k;
81443 for(k=0; k<pUsing->nId; k++){
81444 if( sqlite3StrICmp(pUsing->a[k].zName, zCol)==0 ) return 1;
87022 int k;
87024 for(k=0; k<pAggInfo->nColumn; k++, pCol++){
87030 if( (k>=pAggInfo->nColumn)
87031 && (k = addAggInfoColumn(pParse->db, pAggInfo))>=0
87033 pCol = &pAggInfo->aCol[k];
87066 pExpr->iAgg = (i16)k;
89246 int j, k, regKey;
89249 k = sqlite3ColumnOfIndex(pIdx, pPk->aiColumn[j]);
89250 sqlite3VdbeAddOp3(v, OP_Column, iIdxCur, k, regKey+j);
89356 HashElem *k;
89368 for(k=sqliteHashFirst(&pSchema->tblHash); k; k=sqliteHashNext(k)){
89369 Table *pTab = (Table*)sqliteHashData(k);
92327 int i, k, n;
92352 k = sqlite3Strlen30(zStmt);
92353 identPut(zStmt, &k, p->zName);
92354 zStmt[k++] = '(';
92366 sqlite3_snprintf(n-k, &zStmt[k], zSep);
92367 k += sqlite3Strlen30(&zStmt[k]);
92369 identPut(zStmt, &k, pCol->zName);
92382 memcpy(&zStmt[k], zType, len);
92383 k += len;
92384 assert( k<=n );
92386 sqlite3_snprintf(n-k, &zStmt[k], "%s", zEnd);
93960 int k;
93966 for(k=0; k<pIdx->nKeyCol; k++){
93969 if( pIdx->aiColumn[k]!=pIndex->aiColumn[k] ) break;
93970 z1 = pIdx->azColl[k];
93971 z2 = pIndex->azColl[k];
93974 if( k==pIdx->nKeyCol ){
94915 HashElem *k; /* For looping over tables in pDb */
94921 for(k=sqliteHashFirst(&pDb->pSchema->tblHash); k; k=sqliteHashNext(k)){
94922 pTab = (Table*)sqliteHashData(k);
104602 int i, k;
104632 k = 0;
104634 k = 1;
104636 for(k=1; k<=pTab->nCol && pPk->aiColumn[k-1]!=i; k++){}
104638 sqlite3VdbeAddOp2(v, OP_Integer, k, 6);
104844 HashElem *k; /* Loop counter: Next table in schema */
104864 k = sqliteHashFirst(&db->aDb[iDb].pSchema->tblHash);
104865 while( k ){
104868 k = 0;
104870 pTab = (Table*)sqliteHashData(k);
104871 k = sqliteHashNext(k);
104893 k = 0;
108111 int k;
108112 for(k=nName-1; k>1 && sqlite3Isdigit(zName[k]); k--){}
108113 if( k>=0 && zName[k]==':' ) nName = k;
110584 int i, j, k;
110694 for(k=0; k<pEList->nExpr; k++){
110695 pE = pEList->a[k].pExpr;
110701 if( k<pEList->nExpr ){
110720 for(k=0; k<pEList->nExpr; k++){
110721 pE = a[k].pExpr;
110727 pNew = sqlite3ExprListAppend(pParse, pNew, a[k].pExpr);
110729 pNew->a[pNew->nExpr-1].zName = a[k].zName;
110730 pNew->a[pNew->nExpr-1].zSpan = a[k].zSpan;
110731 a[k].zName = 0;
110732 a[k].zSpan = 0;
110734 a[k].pExpr = 0;
111516 int k; /* Loop counter */
111519 for(k=p->pEList->nExpr, pItem=p->pEList->a; k>0; k--, pItem++){
111522 for(k=pGroupBy->nExpr, pItem=pGroupBy->a; k>0; k--, pItem++){
116017 int k; /* Resume scanning at this->pWC->a[this->k] */
116618 int k = pScan->k; /* Where to start scanning */
116624 for(pTerm=pWC->a+k; k<pWC->nTerm; k++, pTerm++){
116671 pScan->k = k+1;
116677 k = 0;
116680 k = 0;
116726 pScan->k = 0;
119422 int j, k; /* Loop counters */
119896 k = sqlite3ColumnOfIndex(pIdx, pPk->aiColumn[j]);
119897 sqlite3VdbeAddOp3(v, OP_Column, iIdxCur, k, iRowidReg+j);
120006 for(k=1; k<=nNotReady; k++){
120007 memcpy(&pOrTab->a[k], &origSrc[pLevel[k].iFrom], sizeof(pOrTab->a[k]));
120804 int i, j, k;
120829 if( sqlite3ExprIsInteger(pRight, &k) && k>=(-1) && k<=1 ){
120830 k = 10;
120832 k = 20;
120834 if( iReduce<k ) iReduce = k;
123128 int k, last;
123142 k = pLevel->addrBody;
123143 pOp = sqlite3VdbeGetOp(v, k);
123144 for(; k<last; k++, pOp++){
123199 k = pLevel->addrBody;
123200 pOp = sqlite3VdbeGetOp(v, k);
123201 for(; k<last; k++, pOp++){
134307 int k;
134308 for(k=j; k<nCol; k++) aCol[k] = aCol[k+1];
152238 int i, j, k, n;
152258 k = j+1;
152259 if( k<n && rtreeSearchPointCompare(&p->aPoint[k], &p->aPoint[j])<0 ){
152260 if( rtreeSearchPointCompare(&p->aPoint[k], &p->aPoint[i])<0 ){
152261 rtreeSearchPointSwap(p, i, k);
152262 i = k;