• Home
  • Raw
  • Download

Lines Matching refs:iCol

5560 SQLITE_API const void *sqlite3_column_blob(sqlite3_stmt*, int iCol);
5561 SQLITE_API double sqlite3_column_double(sqlite3_stmt*, int iCol);
5562 SQLITE_API int sqlite3_column_int(sqlite3_stmt*, int iCol);
5563 SQLITE_API sqlite3_int64 sqlite3_column_int64(sqlite3_stmt*, int iCol);
5564 SQLITE_API const unsigned char *sqlite3_column_text(sqlite3_stmt*, int iCol);
5565 SQLITE_API const void *sqlite3_column_text16(sqlite3_stmt*, int iCol);
5566 SQLITE_API sqlite3_value *sqlite3_column_value(sqlite3_stmt*, int iCol);
5567 SQLITE_API int sqlite3_column_bytes(sqlite3_stmt*, int iCol);
5568 SQLITE_API int sqlite3_column_bytes16(sqlite3_stmt*, int iCol);
5569 SQLITE_API int sqlite3_column_type(sqlite3_stmt*, int iCol);
11546 int (*xColumnTotalSize)(Fts5Context*, int iCol, sqlite3_int64 *pnToken);
11561 int (*xColumnText)(Fts5Context*, int iCol, const char **pz, int *pn);
11562 int (*xColumnSize)(Fts5Context*, int iCol, int *pnToken);
72872 int iCol, /* Column to extract */
72884 assert( iCol>0 );
72888 for(i=0; i<=iCol; i++){
87335 u16 iCol; /* Table column this handle is open on */
87385 u32 type = pC->nHdrParsed>p->iCol ? pC->aType[p->iCol] : 0;
87386 testcase( pC->nHdrParsed==p->iCol );
87387 testcase( pC->nHdrParsed==p->iCol+1 );
87396 p->iOffset = pC->aType[p->iCol + pC->nField];
87436 int iCol; /* Index of zColumn in row-record */
87496 for(iCol=0; iCol<pTab->nCol; iCol++) {
87497 if( sqlite3StrICmp(pTab->aCol[iCol].zName, zColumn)==0 ){
87501 if( iCol==pTab->nCol ){
87525 if( pFKey->aCol[j].iFrom==iCol ){
87536 if( pIdx->aiColumn[j]==iCol || pIdx->aiColumn[j]==XN_EXPR ){
87631 pBlob->iCol = iCol;
91233 int iCol, /* A column in the result set. 0..pEList->nExpr-1 */
91242 assert( iCol>=0 && iCol<pEList->nExpr );
91243 pOrig = pEList->a[iCol].pExpr;
91486 int iCol;
91489 for(iCol=0, pCol=pTab->aCol; iCol<pTab->nCol; iCol++, pCol++){
91491 if( iCol==pTab->iPKey ){
91492 iCol = -1;
91497 if( iCol>=pTab->nCol && sqlite3IsRowid(zCol) && VisibleRowid(pTab) ){
91499 iCol = -1;
91501 if( iCol<pTab->nCol ){
91503 if( iCol<0 ){
91506 testcase( iCol==31 );
91507 testcase( iCol==32 );
91508 pParse->oldmask |= (iCol>=32 ? 0xffffffff : (((u32)1)<<iCol));
91510 testcase( iCol==31 );
91511 testcase( iCol==32 );
91512 pParse->newmask |= (iCol>=32 ? 0xffffffff : (((u32)1)<<iCol));
91514 pExpr->iColumn = (i16)iCol;
91675 SQLITE_PRIVATE Expr *sqlite3CreateColumnExpr(sqlite3 *db, SrcList *pSrc, int iSrc, int iCol){
91681 if( p->pTab->iPKey==iCol ){
91684 p->iColumn = (ynVar)iCol;
91685 testcase( iCol==BMS );
91686 testcase( iCol==BMS-1 );
91687 pItem->colUsed |= ((Bitmask)1)<<(iCol>=BMS ? BMS-1 : iCol);
92150 int iCol = -1;
92154 if( sqlite3ExprIsInteger(pE, &iCol) ){
92155 if( iCol<=0 || iCol>pEList->nExpr ){
92160 iCol = resolveAsName(pParse, pEList, pE);
92161 if( iCol==0 ){
92165 iCol = resolveOrderByTermToExprList(pParse, pSelect, pDup);
92170 if( iCol>0 ){
92176 pNew->u.iValue = iCol;
92187 pItem->u.x.iOrderByCol = (u16)iCol;
92271 int iCol; /* Column number */
92283 iCol = resolveAsName(pParse, pSelect->pEList, pE2);
92284 if( iCol>0 ){
92289 pItem->u.x.iOrderByCol = (u16)iCol;
92293 if( sqlite3ExprIsInteger(pE2, &iCol) ){
92297 if( iCol<1 || iCol>0xffff ){
92301 pItem->u.x.iOrderByCol = (u16)iCol;
92727 SQLITE_PRIVATE char sqlite3TableColumnAffinity(Table *pTab, int iCol){
92728 assert( iCol<pTab->nCol );
92729 return iCol>=0 ? pTab->aCol[iCol].affinity : SQLITE_AFF_INTEGER;
95013 int iCol = pEList->a[i].pExpr->iColumn;
95014 char idxaff = sqlite3TableColumnAffinity(pTab,iCol); /* RHS table */
95852 SQLITE_PRIVATE void sqlite3ExprCacheStore(Parse *pParse, int iTab, int iCol, int iReg){
95860 assert( iCol>=-1 && iCol<32768 ); /* Finite column numbers */
95875 assert( p->iTable!=iTab || p->iColumn!=iCol );
95897 p->iColumn = iCol;
96002 int iCol, /* Index of the column to extract */
96006 sqlite3VdbeAddOp3(v, OP_Column, iTabCur, iCol, regOut);
96009 if( iCol<0 || iCol==pTab->iPKey ){
96013 int x = iCol;
96015 x = sqlite3ColumnOfIndex(sqlite3PrimaryKeyIndex(pTab), iCol);
96019 if( iCol>=0 ){
96020 sqlite3ColumnDefault(v, pTab, iCol, regOut);
99128 int iCol; /* If !isPSample, the reason for inclusion */
99195 pTo->iCol = pFrom->iCol;
99316 p->aBest[i].iCol = i;
99357 assert( pNew->iCol==pOld->iCol );
99358 for(i=pNew->iCol+1; i<nCol; i++){
99379 tRowcnt nEqNew = pNew->anEq[pNew->iCol];
99380 tRowcnt nEqOld = pOld->anEq[pOld->iCol];
99383 assert( IsStat4 || (pNew->iCol==0 && pOld->iCol==0) );
99388 if( pNew->iCol<pOld->iCol ) return 1;
99389 return (pNew->iCol==pOld->iCol && sampleIsBetterPost(pAccum, pNew, pOld));
99417 assert( pNew->anEq[pNew->iCol]>0 );
99426 if( pOld->anEq[pNew->iCol]==0 ){
99428 assert( pOld->iCol>pNew->iCol );
99436 pUpgrade->iCol = pNew->iCol;
99437 pUpgrade->anEq[pUpgrade->iCol] = pNew->anEq[pUpgrade->iCol];
99628 p->current.iCol = 0;
99635 p->current.iCol = i;
100464 int iCol;
100474 for(iCol=0; iCol<nCol; iCol++){
100483 if( !pIdx->aiRowEst || iCol>=pIdx->nKeyCol || pIdx->aiRowEst[iCol+1]==0 ){
100484 nRow = pFinal->anLt[iCol];
100485 nDist100 = (i64)100 * pFinal->anDLt[iCol];
100489 nDist100 = ((i64)100 * pIdx->aiRowEst[0]) / pIdx->aiRowEst[iCol+1];
100499 || aSample[i].anDLt[iCol]!=aSample[i+1].anDLt[iCol]
100501 sumEq += aSample[i].anEq[iCol];
100510 pIdx->aAvgEq[iCol] = avgEq;
101511 int iCol; /* Index of column in table */
101533 iCol = pExpr->iColumn;
101536 if( iCol>=0 ){
101537 assert( iCol<pTab->nCol );
101538 zCol = pTab->aCol[iCol].zName;
102455 SQLITE_PRIVATE i16 sqlite3ColumnOfIndex(Index *pIdx, i16 iCol){
102458 if( iCol==pIdx->aiColumn[i] ) return i;
102942 int iCol = -1, i;
102952 iCol = pTab->nCol - 1;
102953 pCol = &pTab->aCol[iCol];
102964 for(iCol=0; iCol<pTab->nCol; iCol++){
102965 if( sqlite3StrICmp(zCName, pTab->aCol[iCol].zName)==0 ){
102966 pCol = &pTab->aCol[iCol];
102979 pTab->iPKey = iCol;
104283 int iCol = p->nCol-1;
104284 if( NEVER(iCol<0) ) goto fk_end;
104288 p->aCol[iCol].zName, pTo);
107281 int iCol; /* Iterator used while populating OLD.* */
107296 for(iCol=0; iCol<pTab->nCol; iCol++){
107297 testcase( mask!=0xffffffff && iCol==31 );
107298 testcase( mask!=0xffffffff && iCol==32 );
107299 if( mask==0xffffffff || (iCol<=31 && (mask & MASKBIT32(iCol))!=0) ){
107300 sqlite3ExprCodeGetColumnOfTable(v, pTab, iDataCur, iCol, iOld+iCol+1);
109680 i16 iCol = pIdx->aiColumn[i]; /* Index of column in parent tbl */
109684 if( iCol<0 ) break; /* No foreign keys against expression indexes */
109689 zDfltColl = pParent->aCol[iCol].zColl;
109693 zIdxCol = pParent->aCol[iCol].zName;
109892 i16 iCol /* Which column of pTab is desired */
109901 if( iCol>=0 && iCol!=pTab->iPKey ){
109902 pCol = &pTab->aCol[iCol];
109903 pExpr->iTable = regBase + iCol + 1;
109924 i16 iCol /* The column that is wanted */
109930 pExpr->iColumn = iCol;
110007 i16 iCol; /* Index of column in child table */
110010 iCol = pIdx ? pIdx->aiColumn[i] : -1;
110011 pLeft = exprTableRegister(pParse, pTab, regData, iCol);
110012 iCol = aiCol ? aiCol[i] : pFKey->aCol[0].iFrom;
110013 assert( iCol>=0 );
110014 zCol = pFKey->pFrom->aCol[iCol].zName;
110044 i16 iCol = pIdx->aiColumn[i];
110045 assert( iCol>=0 );
110046 pLeft = exprTableRegister(pParse, pTab, regData, iCol);
110047 pRight = exprTableColumn(db, pTab, pSrc->a[0].iCursor, iCol);
110314 int iCol;
110360 iCol = pFKey->aCol[0].iFrom;
110361 aiCol = &iCol;
113335 const void * (*column_blob)(sqlite3_stmt*,int iCol);
113336 int (*column_bytes)(sqlite3_stmt*,int iCol);
113337 int (*column_bytes16)(sqlite3_stmt*,int iCol);
113343 double (*column_double)(sqlite3_stmt*,int iCol);
113344 int (*column_int)(sqlite3_stmt*,int iCol);
113345 sqlite_int64 (*column_int64)(sqlite3_stmt*,int iCol);
113352 const unsigned char * (*column_text)(sqlite3_stmt*,int iCol);
113353 const void * (*column_text16)(sqlite3_stmt*,int iCol);
113354 int (*column_type)(sqlite3_stmt*,int iCol);
113355 sqlite3_value* (*column_value)(sqlite3_stmt*,int iCol);
116686 int iCol = aiCols ? aiCols[j] : pFK->aCol[j].iFrom;
116687 sqlite3ExprCodeGetColumnOfTable(v, pTab, 0, iCol, regRow+j);
116949 int iCol = pIdx->aiColumn[kk];
116950 assert( iCol!=XN_ROWID && iCol<pTab->nCol );
116951 if( iCol>=0 && pTab->aCol[iCol].notNull ) continue;
118985 int iCol; /* Index of column matching zCol */
118989 iCol = columnIndex(pSrc->a[i].pTab, zCol);
118990 if( iCol>=0 ){
118993 *piCol = iCol;
119927 int iCol;
119971 for(i=0, iCol=nKey+bSeq; i<nSortData; i++){
119976 iRead = iCol++;
120096 int iCol = pExpr->iColumn; /* Index of column in pTab */
120135 if( iCol>=0 && iCol<pS->pEList->nExpr ){
120141 Expr *p = pS->pEList->a[iCol].pExpr;
120151 if( iCol<0 ) iCol = pTab->iPKey;
120152 assert( iCol==XN_ROWID || (iCol>=0 && iCol<pTab->nCol) );
120153 if( iCol<0 ){
120157 zOrigCol = pTab->aCol[iCol].zName;
120158 zType = sqlite3ColumnType(&pTab->aCol[iCol],0);
120166 assert( iCol==XN_ROWID || (iCol>=0 && iCol<pTab->nCol) );
120167 if( iCol<0 ){
120170 zType = sqlite3ColumnType(&pTab->aCol[iCol],0);
120321 int iCol = p->iColumn;
120324 if( iCol<0 ) iCol = pTab->iPKey;
120325 assert( iCol==-1 || (iCol>=0 && iCol<pTab->nCol) );
120326 if( iCol<0 ){
120329 zCol = pTab->aCol[iCol].zName;
120412 int iCol = pColExpr->iColumn;
120415 if( iCol<0 ) iCol = pTab->iPKey;
120416 zName = iCol>=0 ? pTab->aCol[iCol].zName : "rowid";
120653 static CollSeq *multiSelectCollSeq(Parse *pParse, Select *p, int iCol){
120656 pRet = multiSelectCollSeq(pParse, p->pPrior, iCol);
120660 assert( iCol>=0 );
120664 if( pRet==0 && ALWAYS(iCol<p->pEList->nExpr) ){
120665 pRet = sqlite3ExprCollSeq(pParse, p->pEList->a[iCol].pExpr);
127948 int iCol;
127958 for(iCol=0; iCol<pTab->nCol; iCol++){
127959 char *zType = sqlite3ColumnType(&pTab->aCol[iCol], "");
127981 pTab->aCol[iCol].colFlags |= COLFLAG_HIDDEN;
129772 int iCol = aiMap ? aiMap[iMap++] : 0;
129773 pIn->addrInTop = sqlite3VdbeAddOp3(v,OP_Column,iTab, iCol, iOut);
131147 int iCol = pPk->aiColumn[iPk];
131148 sqlite3ExprCodeGetColumnToReg(pParse, pTab, iCol, iCur, r+iPk);
131613 int iCol = pRight->iColumn;
131614 pVal = sqlite3VdbeGetBoundValue(pReprepare, iCol, SQLITE_AFF_BLOB);
131618 sqlite3VdbeSetVarmask(pParse->pVdbe, iCol);
133334 int iCol /* Column of index to match */
133337 const char *zColl = pIdx->azColl[iCol];
133342 && p->iColumn==pIdx->aiColumn[iCol]
133358 static int indexColumnNotNull(Index *pIdx, int iCol){
133361 assert( iCol>=0 && iCol<pIdx->nColumn );
133362 j = pIdx->aiColumn[iCol];
133632 int iCol = pTerm->u.leftColumn;
133633 Bitmask cMask = iCol>=BMS ? MASKBIT(BMS-1) : MASKBIT(iCol);
133634 testcase( iCol==BMS );
133635 testcase( iCol==BMS-1 );
133639 pTable->aCol[iCol].zName);
133685 int iCol = pTerm->u.leftColumn;
133686 Bitmask cMask = iCol>=BMS ? MASKBIT(BMS-1) : MASKBIT(iCol);
133687 testcase( iCol==BMS-1 );
133688 testcase( iCol==BMS );
133989 int iCol; /* Index of required stats in anEq[] etc. */
134050 iCol = 0;
134080 iCol = n-1;
134093 assert( iCol==nField-1 );
134103 pRec->nField = iCol+1;
134112 if( iCol>0 ){
134113 pRec->nField = iCol;
134128 assert( iCol==nField-1 );
134129 aStat[0] = aSample[i].anLt[iCol];
134130 aStat[1] = aSample[i].anEq[iCol];
134139 iUpper = aSample[i].anLt[iCol];
134190 SQLITE_PRIVATE char sqlite3IndexColumnAffinity(sqlite3 *db, Index *pIdx, int iCol){
134191 assert( iCol>=0 && iCol<pIdx->nColumn );
134195 return pIdx->zColAff[iCol];
135402 int iCol = pProbe->aiColumn[saved_nEq];
135405 if( iCol==XN_ROWID
135406 || (iCol>=0 && nInMul==0 && saved_nEq==pProbe->nKeyCol-1)
135408 if( iCol>=0 && pProbe->uniqNotNull==0 ){
146803 int iCol = 0;
146836 for(iCol=0; iCol<pTab->nCol; iCol++){
146837 pCol = &pTab->aCol[iCol];
146842 if( iCol==pTab->nCol ){
146844 iCol = pTab->iPKey;
146845 pCol = iCol>=0 ? &pTab->aCol[iCol] : 0;
146868 autoinc = pTab->iPKey==iCol && (pTab->tabFlags & TF_Autoincrement)!=0;
148404 int fts3_global_term_cnt(int iTerm, int iCol);
148405 int fts3_term_cnt(int iTerm, int iCol);
149001 int iCol;
149086 SQLITE_PRIVATE int sqlite3Fts3EvalPhrasePoslist(Fts3Cursor *, Fts3Expr *, int iCol, char **);
149941 int iCol; /* Column index */
150214 for(iCol=0; iCol<nCol; iCol++){
150217 z = (char *)sqlite3Fts3NextToken(aCol[iCol], &n);
150223 p->azColumn[iCol] = zCsr;
150229 for(iCol=0; iCol<nCol; iCol++){
150230 int n = (int)strlen(p->azColumn[iCol]);
150234 && 0==sqlite3_strnicmp(p->azColumn[iCol], zNot, n)
150236 p->abNotindexed[iCol] = 1;
150933 static int fts3PutColNumber(char **pp, int iCol){
150935 if( iCol ){
150937 n = 1 + sqlite3Fts3PutVarint(&p[1], iCol);
151487 sqlite3_int64 iCol;
151489 p += sqlite3Fts3GetVarint(p, &iCol);
151496 nOut += sqlite3Fts3PutVarint(&pOut[nOut], iCol);
151885 filter.iCol = iColumn;
152059 int iCol = eSearch-FTS3_FULLTEXT_SEARCH;
152071 p->azColumn, p->bFts4, p->nColumn, iCol, zQuery, -1, &pCsr->pExpr,
152158 int iCol /* Index of column to read value from */
152165 assert( iCol>=0 && iCol<=p->nColumn+2 );
152167 switch( iCol-p->nColumn ){
152186 iCol = p->nColumn;
152194 if( rc==SQLITE_OK && sqlite3_data_count(pCsr->pStmt)-1>iCol ){
152195 sqlite3_result_value(pCtx, sqlite3_column_value(pCsr->pStmt, iCol+1));
152413 int iCol = -1;
152430 case 5: iCol = sqlite3_value_int(apVal[4]);
152440 sqlite3Fts3Snippet(pContext, pCsr, zStart, zEnd, zEllipsis, iCol, nToken);
153129 int iCol = (p->iColumn >= pTab->nColumn ? -1 : p->iColumn);
153134 rc = sqlite3Fts3MsrIncrStart(pTab, pSegcsr, iCol, pToken->z, pToken->n);
153548 int iCol; /* The column the token must match */
153576 pTC->iCol = pPhrase->iColumn;
153755 rc = sqlite3Fts3DeferToken(pCsr, pToken, pTC->iCol);
153771 rc = fts3TermSelect(pTab, pToken, pTC->iCol, &nList, &pList);
154413 int iCol = 0;
154428 pExpr->aMI[iCol*3 + 1] += iCnt;
154429 pExpr->aMI[iCol*3 + 2] += (iCnt>0);
154432 p += fts3GetVarint32(p, &iCol);
154570 int iCol;
154574 for(iCol=0; iCol<pTab->nColumn; iCol++){
154575 aiOut[iCol*3 + 1] = (u32)pCsr->nDoc;
154576 aiOut[iCol*3 + 2] = (u32)pCsr->nDoc;
154582 for(iCol=0; iCol<pTab->nColumn; iCol++){
154583 aiOut[iCol*3 + 1] = pExpr->aMI[iCol*3 + 1];
154584 aiOut[iCol*3 + 2] = pExpr->aMI[iCol*3 + 2];
154614 int iCol, /* Column to return position list for */
154626 assert( iCol>=0 && iCol<pTab->nColumn );
154627 if( (pPhrase->iColumn<pTab->nColumn && pPhrase->iColumn!=iCol) ){
154724 while( iThis<iCol ){
154734 *ppOut = ((iCol==iThis)?pIter:0);
154826 int iCol; /* Current value of 'col' column */
154963 int iCol = pInfo->aConstraint[i].iColumn;
154965 if( iCol==0 ){
154972 if( iCol==4 ){
155063 for(pCsr->iCol++; pCsr->iCol<pCsr->nStat; pCsr->iCol++){
155064 if( pCsr->aStat[pCsr->iCol].nDoc>0 ) return SQLITE_OK;
155072 int iCol;
155087 iCol = 0;
155098 iCol = 0;
155110 assert( iCol==0 );
155123 pCsr->aStat[iCol+1].nOcc++;
155130 iCol = (int)v;
155131 if( fts3auxGrowStatArray(pCsr, iCol+2) ) return SQLITE_NOMEM;
155132 pCsr->aStat[iCol+1].nDoc++;
155138 pCsr->iCol = 0;
155255 int iCol /* Index of column to read value from */
155260 switch( iCol ){
155266 if( p->iCol ){
155267 sqlite3_result_int(pCtx, p->iCol-1);
155274 sqlite3_result_int64(pCtx, p->aStat[p->iCol].nDoc);
155278 sqlite3_result_int64(pCtx, p->aStat[p->iCol].nOcc);
155282 assert( iCol==4 );
155519 int iCol, /* Value for Fts3Phrase.iColumn */
155554 pRet->pPhrase->iColumn = iCol;
155752 int iCol;
155863 iCol = pParse->iDefaultCol;
155871 iCol = ii;
155876 rc = getNextToken(pParse, iCol, &z[iColLen], n-iColLen, ppExpr, pnConsumed);
158840 int iCol /* Index of column to read value from */
158845 switch( iCol ){
158859 assert( iCol==4 );
159032 int iCol; /* Column token must occur in */
159605 sqlite3_int64 iCol, /* Column for entry to add */
159628 if( iCol>0 && p->iLastCol!=iCol ){
159630 || SQLITE_OK!=(rc = fts3PendingListAppendVarint(&p, iCol))
159634 p->iLastCol = iCol;
159637 if( iCol>=0 ){
159666 int iCol,
159679 if( fts3PendingListAppend(&pList, p->iPrevDocid, iCol, iPos, &rc) ){
159706 int iCol, /* Column into which text is being inserted */
159756 p, iCol, iPos, &p->aIndex[0].hPending, zToken, nToken
159765 p, iCol, iPos, &pIndex->hPending, zToken, pIndex->nPrefix
159842 int iCol = i-2;
159843 if( p->abNotindexed[iCol]==0 ){
159845 int rc = fts3PendingTermsAdd(p, iLangid, zText, iCol, &aSz[iCol]);
159998 int iCol = i-1;
159999 if( p->abNotindexed[iCol]==0 ){
160001 rc = fts3PendingTermsAdd(p, iLangid, zText, -1, &aSz[iCol]);
161500 int iCol, /* Column to filter on */
161511 assert( iCol>=0 );
161516 if( iCol==iCurrent ){
161673 int iCol, /* Column to match on. */
161707 assert( iCol<0 || iCol<p->nColumn );
161708 pCsr->iColFilter = iCol;
161861 fts3ColumnFilter(pFilter->iCol, 0, &pList, &nList);
161952 int iCol,
161956 const unsigned char *zText = sqlite3_column_text(pStmt, iCol);
162448 int iCol;
162452 for(iCol=0; rc==SQLITE_OK && iCol<p->nColumn; iCol++){
162453 if( p->abNotindexed[iCol]==0 ){
162454 const char *z = (const char *) sqlite3_column_text(pStmt, iCol+1);
162455 rc = fts3PendingTermsAdd(p, iLangid, z, iCol, &aSz[iCol]);
162456 aSz[p->nColumn] += sqlite3_column_bytes(pStmt, iCol+1);
162467 for(iCol=0; iCol<=p->nColumn; iCol++){
162468 aSzIns[iCol] += aSz[iCol];
163984 int iCol, /* Column number */
163992 ret += (ret<<3) + iCol;
164039 i64 iCol = 0;
164048 iCol = 0;
164051 pCsr += sqlite3Fts3GetVarint(pCsr, &iCol);
164060 (int)iCol, (int)iPos
164122 int iCol;
164124 for(iCol=0; rc==SQLITE_OK && iCol<p->nColumn; iCol++){
164125 if( p->abNotindexed[iCol]==0 ){
164126 const char *zText = (const char *)sqlite3_column_text(pStmt, iCol+1);
164127 int nText = sqlite3_column_bytes(pStmt, iCol+1);
164141 zToken, nToken, iLang, 0, iDocid, iCol, iPos
164146 zToken, p->aIndex[i].nPrefix, iLang, i, iDocid, iCol, iPos
164314 if( (pDef->iCol>=p->nColumn || pDef->iCol==i)
164371 int iCol /* Column that token must appear in (or -1) */
164381 pDeferred->iCol = iCol;
164671 int iCol; /* Extract snippet from this column */
164688 int iCol; /* Column snippet is extracted from */
165083 rc = sqlite3Fts3EvalPhrasePoslist(p->pCsr, pExpr, p->iCol, &pCsr);
165121 int iCol, /* Index of column to create snippet from */
165158 sIter.iCol = iCol;
165175 pFragment->iCol = iCol;
165340 int iCol = pFragment->iCol+1; /* Query column to extract text from */
165344 zDoc = (const char *)sqlite3_column_text(pCsr->pStmt, iCol);
165346 if( sqlite3_column_type(pCsr->pStmt, iCol)!=SQLITE_NULL ){
165351 nDoc = sqlite3_column_bytes(pCsr->pStmt, iCol);
165474 int iCol = 0;
165485 if( (pPhrase->iColumn>=pTab->nColumn || pPhrase->iColumn==iCol) ){
165487 p->aMatchinfo[iStart + iCol] = (u32)nHit;
165489 p->aMatchinfo[iStart + (iCol+1)/32] |= (1 << (iCol&0x1F));
165495 pIter += fts3GetVarint32(pIter, &iCol);
165729 int iCol;
165746 for(iCol=0; iCol<pInfo->nCol; iCol++){
165753 rc = sqlite3Fts3EvalPhrasePoslist(pCsr, pIt->pExpr, iCol, &pIt->pRead);
165786 pInfo->aMatchinfo[iCol] = nLcs;
165847 int iCol;
165848 for(iCol=0; iCol<pInfo->nCol; iCol++){
165853 pInfo->aMatchinfo[iCol] = iVal;
165863 int iCol;
165865 for(iCol=0; iCol<pInfo->nCol; iCol++){
165868 pInfo->aMatchinfo[iCol] = (u32)nToken;
166013 int iCol, /* Extract snippet from this column */
166064 if( iCol>=0 && iRead!=iCol ) continue;
166117 int iCol; /* Column of table to populate aTerm for */
166135 rc = sqlite3Fts3EvalPhrasePoslist(p->pCsr, pExpr, p->iCol, &pList);
166163 int iCol; /* Column currently being processed */
166191 for(iCol=0; iCol<pTab->nColumn; iCol++){
166205 sCtx.iCol = iCol;
166215 zDoc = (const char *)sqlite3_column_text(pCsr->pStmt, iCol+1);
166216 nDoc = sqlite3_column_bytes(pCsr->pStmt, iCol+1);
166218 if( sqlite3_column_type(pCsr->pStmt, iCol+1)==SQLITE_NULL ){
166261 "%d %d %d %d ", iCol, pTerm-sCtx.aTerm, iStart, iEnd-iStart
170059 static int rtreeConstraintError(Rtree *pRtree, int iCol){
170064 assert( iCol==0 || iCol%2 );
170074 if( iCol==0 ){
170080 const char *zCol1 = sqlite3_column_name(pStmt, iCol);
170081 const char *zCol2 = sqlite3_column_name(pStmt, iCol+1);
174608 int iCol;
174611 for(iCol=0; p->rc==SQLITE_OK && iCol<pIter->nTblCol; iCol++){
174613 const char *zCol = pIter->azTblCol[iCol];
174620 if( pIter->eType==RBU_PK_IPK && pIter->abTblPk[iCol] ){
174626 zSql, zComma, zCol, pIter->azTblType[iCol], zPk, zColl,
174627 (pIter->abNotNull[iCol] ? " NOT NULL" : "")
175618 int iCol = p->objiter.nCol; /* Index of rbu_control column */
175621 switch( sqlite3_column_type(p->objiter.pSelect, iCol) ){
175623 int iVal = sqlite3_column_int(p->objiter.pSelect, iCol);
175635 const unsigned char *z = sqlite3_column_text(p->objiter.pSelect, iCol);
175660 static void assertColumnName(sqlite3_stmt *pStmt, int iCol, const char *zName){
175661 const char *zCol = sqlite3_column_name(pStmt, iCol);
179392 int iCol; /* Used to iterate through table columns */
179394 for(iCol=0; iCol<pTab->nCol; iCol++){
179395 if( pTab->abPK[iCol] ){
179399 if( pTab->abPK[iCol] && (n1!=n2 || memcmp(a1, a2, n1)) ){
179435 int iCol; /* Used to iterate from 0 to nCol */
179437 for(iCol=0; iCol<nCol; iCol++){
179589 int iCol; /* Used to iterate through columns */
179593 for(iCol=0; iCol<pTab->nCol; iCol++){
179594 if( !pTab->abPK[iCol] ){
179608 rc = pSession->hook.xNew(pSession->hook.pCtx, iCol, &pVal);
179611 rc = pSession->hook.xOld(pSession->hook.pCtx, iCol, &pVal);
179872 static int sessionStat1Old(void *pCtx, int iCol, sqlite3_value **ppVal){
179875 int rc = p->hook.xOld(p->hook.pCtx, iCol, &pVal);
179876 if( rc==SQLITE_OK && iCol==1 && sqlite3_value_type(pVal)==SQLITE_NULL ){
179882 static int sessionStat1New(void *pCtx, int iCol, sqlite3_value **ppVal){
179885 int rc = p->hook.xNew(p->hook.pCtx, iCol, &pVal);
179886 if( rc==SQLITE_OK && iCol==1 && sqlite3_value_type(pVal)==SQLITE_NULL ){
180755 int iCol, /* Column to read value from */
180759 int eType = sqlite3_column_type(pStmt, iCol);
180765 i = sqlite3_column_int64(pStmt, iCol);
180767 double r = sqlite3_column_double(pStmt, iCol);
180777 z = (u8 *)sqlite3_column_blob(pStmt, iCol);
180779 z = (u8 *)sqlite3_column_text(pStmt, iCol);
180781 nByte = sqlite3_column_bytes(pStmt, iCol);
181182 int iCol;
181185 for(iCol=0; iCol<nCol; iCol++){
181186 sessionAppendCol(&buf, pSel, iCol, &rc);
182051 int iCol;
182076 for(iCol=0; iCol<nCol; iCol++){
182077 sqlite3_value *pVal = apVal[iCol + (abPK[iCol] ? 0 : nCol)];
182084 for(iCol=0; iCol<nCol; iCol++){
182085 sqlite3_value *pVal = (abPK[iCol] ? 0 : apVal[iCol]);
182089 for(iCol=0; iCol<nCol*2; iCol++){
182090 sqlite3ValueFree(apVal[iCol]);
186333 int (*xColumnTotalSize)(Fts5Context*, int iCol, sqlite3_int64 *pnToken);
186348 int (*xColumnText)(Fts5Context*, int iCol, const char **pz, int *pn);
186349 int (*xColumnSize)(Fts5Context*, int iCol, int *pnToken);
187008 int iCol,
187069 int iCol, /* Column token appears in (-ve -> delete) */
187192 int iCol, /* Column token appears in (-ve -> delete) */
187255 static int sqlite3Fts5StorageSize(Fts5Storage *p, int iCol, i64 *pnAvg);
187294 int iCol, /* Column on LHS of MATCH operator */
188880 int iCol; /* Column to search */
188902 if( ic==pIter->iCol ){
188927 int iCol,
188935 pIter->iCol = iCol;
189051 int iCol;
189059 iCol = sqlite3_value_int(apVal[0]);
189063 rc = pApi->xColumnText(pFts, iCol, &ctx.zIn, &ctx.nIn);
189067 rc = fts5CInstIterInit(pApi, pFts, iCol, &ctx.iter);
189162 int iCol, /* Column to score */
189181 if( rc==SQLITE_OK && ic==iCol && iOff>=iPos && iOff<(iPos+nToken) ){
189222 int iCol; /* 1st argument to snippet() */
189244 iCol = sqlite3_value_int(apVal[0]);
189250 iBestCol = (iCol>=0 ? iCol : 0);
189262 if( iCol<0 || iCol==i ){
191129 int iCol,
191156 if( iCol<pConfig->nCol && sParse.pExpr && sParse.rc==SQLITE_OK ){
191161 pColset->aiCol[0] = iCol;
192742 int iCol /* New column to add to colset object */
192748 assert( iCol>=0 && iCol<pParse->pConfig->nCol );
192757 if( aiCol[i]==iCol ) return pNew;
192758 if( aiCol[i]>iCol ) break;
192763 aiCol[i] = iCol;
192809 int iCol;
192816 for(iCol=0; iCol<pConfig->nCol; iCol++){
192817 if( 0==sqlite3_stricmp(pConfig->azCol[iCol], z) ) break;
192819 if( iCol==pConfig->nCol ){
192822 pRet = fts5ParseColset(pParse, pColset, iCol);
193274 int iCol = pNear->pColset->aiCol[0];
193275 zRet = fts5PrintfAppend(zRet, "%s : ", pConfig->azCol[iCol]);
193584 static int fts5ExprColsetTest(Fts5Colset *pColset, int iCol){
193587 if( pColset->aiCol[i]==iCol ) return 1;
193631 int iCol,
193638 sCtx.iOff = (((i64)iCol) << 32) - 1;
193643 if( (pColset && 0==fts5ExprColsetTest(pColset, iCol))
193823 i16 iCol; /* Column of last value written */
193987 int iCol, /* Column token appears in (-ve -> delete) */
194049 p->iCol = (pHash->eDetail==FTS5_DETAIL_FULL ? 0 : -1);
194092 p->iCol = (pHash->eDetail==FTS5_DETAIL_FULL ? 0 : -1);
194097 if( iCol>=0 ){
194102 assert( iCol>=p->iCol );
194103 if( iCol!=p->iCol ){
194106 p->nData += sqlite3Fts5PutVarint(&pPtr[p->nData], iCol);
194107 p->iCol = (i16)iCol;
194111 p->iCol = (i16)(iPos = iCol);
197254 static int fts5IndexColsetTest(Fts5Colset *pColset, int iCol){
197257 if( pColset->aiCol[i]==iCol ) return 1;
197300 int iCol;
197301 fts5FastGetVarint32(pChunk, i, iCol);
197302 if( fts5IndexColsetTest(pCtx->pColset, iCol) ){
197319 int iCol;
197325 fts5FastGetVarint32(pChunk, i, iCol);
197326 pCtx->eState = fts5IndexColsetTest(pCtx->pColset, iCol);
197422 int iCol /* Column to extract from poslist */
197428 while( iCol>iCurrent ){
197445 if( iCol!=iCurrent ) return 0;
199588 int iCol, /* Column token appears in (-ve -> delete) */
199597 assert( (iCol<0)==p->bDelete );
199601 p->pHash, p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX, pToken, nToken
199609 p->iWriteRowid, iCol, iPos, (char)(FTS5_MAIN_PREFIX+i+1), pToken,
199781 int iCol;
199783 for(iCol=0; i<pData->nn && iCol<nCol; iCol++){
199784 i += fts5GetVarint(&pData->p[i], (u64*)&anSize[iCol]);
199856 int iCol,
199864 ret += (ret<<3) + iCol;
199940 int iCol = FTS5_POS2COLUMN(sReader.iPos);
199942 cksum ^= sqlite3Fts5IndexEntryCksum(rowid, iCol, iOff, iIdx, z, n);
200312 int iCol = FTS5_POS2COLUMN(iPos);
200314 cksum2 ^= sqlite3Fts5IndexEntryCksum(iRowid, iCol, iTokOff, -1, z, n);
201314 int iCol; /* 0==rowid, 1==tbl, 2==rank */
201337 int iCol = p->iColumn;
201339 if( (p->op==SQLITE_INDEX_CONSTRAINT_MATCH && iCol>=0 && iCol<=nCol)
201340 || (p->op==SQLITE_INDEX_CONSTRAINT_EQ && iCol==nCol)
201344 idxFlags = (idxFlags & 0xFFFF) | FTS5_BI_MATCH | (iCol << 16);
201356 if( iCol==aColMap[pC->iCol] && p->op & pC->op && p->usable ){
201935 int iCol; /* Column on LHS of MATCH operator */
201966 iCol = (idxNum>>16);
201967 assert( iCol>=0 && iCol<=pConfig->nCol );
202014 rc = sqlite3Fts5ExprNew(pConfig, iCol, zExpr, &pCsr->pExpr, pzErr);
202445 int iCol,
202450 return sqlite3Fts5StorageSize(pTab->pStorage, iCol, pnToken);
202484 int iCol,
202496 *pz = (const char*)sqlite3_column_text(pCsr->pStmt, iCol+1);
202497 *pn = sqlite3_column_bytes(pCsr->pStmt, iCol+1);
202682 static int fts5ApiColumnSize(Fts5Context *pCtx, int iCol, int *pnToken){
202717 if( iCol<0 ){
202723 }else if( iCol<pConfig->nCol ){
202724 *pnToken = pCsr->aColumnSize[iCol];
203114 int iCol /* Index of column to read value from */
203124 if( iCol==pConfig->nCol ){
203129 if( iCol==pConfig->nCol ){
203135 }else if( iCol==pConfig->nCol+1 ){
203151 sqlite3_result_value(pCtx, sqlite3_column_value(pCsr->pStmt, iCol+1));
203902 int iCol;
203924 return sqlite3Fts5IndexWrite(pIdx, pCtx->iCol, pCtx->szCol-1, pToken, nToken);
203941 int iCol;
203954 ctx.iCol = -1;
203956 for(iCol=1; rc==SQLITE_OK && iCol<=pConfig->nCol; iCol++){
203957 if( pConfig->abUnindexed[iCol-1]==0 ){
203961 zText = (const char*)sqlite3_column_text(pSeek, iCol);
203962 nText = sqlite3_column_bytes(pSeek, iCol);
203964 zText = (const char*)sqlite3_value_text(apVal[iCol-1]);
203965 nText = sqlite3_value_bytes(apVal[iCol-1]);
203971 p->aTotalSize[iCol-1] -= (i64)ctx.szCol;
204150 for(ctx.iCol=0; rc==SQLITE_OK && ctx.iCol<pConfig->nCol; ctx.iCol++){
204152 if( pConfig->abUnindexed[ctx.iCol]==0 ){
204155 (const char*)sqlite3_column_text(pScan, ctx.iCol+1),
204156 sqlite3_column_bytes(pScan, ctx.iCol+1),
204162 p->aTotalSize[ctx.iCol] += (i64)ctx.szCol;
204273 for(ctx.iCol=0; rc==SQLITE_OK && ctx.iCol<pConfig->nCol; ctx.iCol++){
204275 if( pConfig->abUnindexed[ctx.iCol]==0 ){
204278 (const char*)sqlite3_value_text(apVal[ctx.iCol+2]),
204279 sqlite3_value_bytes(apVal[ctx.iCol+2]),
204285 p->aTotalSize[ctx.iCol] += (i64)ctx.szCol;
204329 int iCol;
204354 int iCol;
204366 iCol = pCtx->iCol;
204370 iPos = pCtx->iCol;
204371 iCol = 0;
204377 iCol = 0;
204384 pCtx->iRowid, iCol, iPos, 0, pToken, nToken
204395 pCtx->iRowid, iCol, iPos, ii+1, pToken, nByte
204442 ctx.iCol = i;
204599 static int sqlite3Fts5StorageSize(Fts5Storage *p, int iCol, i64 *pnToken){
204603 if( iCol<0 ){
204608 }else if( iCol<p->pConfig->nCol ){
204609 *pnToken = p->aTotalSize[iCol];
206692 int iCol;
207094 for(pCsr->iCol++; pCsr->iCol<nCol; pCsr->iCol++){
207095 if( pCsr->aDoc[pCsr->iCol] ) break;
207099 if( pTab->eType!=FTS5_VOCAB_COL || pCsr->iCol>=nCol ){
207119 pCsr->iCol = 0;
207143 int iCol = -1;
207147 if( iCol!=ii ){
207153 iCol = ii;
207193 while( pCsr->aDoc[pCsr->iCol]==0 ) pCsr->iCol++;
207194 assert( pCsr->iCol<pCsr->pConfig->nCol );
207279 int iCol /* Index of column to read value from */
207286 if( iCol==0 ){
207291 assert( iCol==1 || iCol==2 || iCol==3 );
207292 if( iCol==1 ){
207294 const char *z = pCsr->pConfig->azCol[pCsr->iCol];
207297 }else if( iCol==2 ){
207298 iVal = pCsr->aDoc[pCsr->iCol];
207300 iVal = pCsr->aCnt[pCsr->iCol];
207303 assert( iCol==1 || iCol==2 );
207304 if( iCol==1 ){
207311 switch( iCol ){
207329 assert( iCol==3 );