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);
72856 int iCol, /* Column to extract */
72868 assert( iCol>0 );
72872 for(i=0; i<=iCol; i++){
87319 u16 iCol; /* Table column this handle is open on */
87369 u32 type = pC->nHdrParsed>p->iCol ? pC->aType[p->iCol] : 0;
87370 testcase( pC->nHdrParsed==p->iCol );
87371 testcase( pC->nHdrParsed==p->iCol+1 );
87380 p->iOffset = pC->aType[p->iCol + pC->nField];
87420 int iCol; /* Index of zColumn in row-record */
87480 for(iCol=0; iCol<pTab->nCol; iCol++) {
87481 if( sqlite3StrICmp(pTab->aCol[iCol].zName, zColumn)==0 ){
87485 if( iCol==pTab->nCol ){
87509 if( pFKey->aCol[j].iFrom==iCol ){
87520 if( pIdx->aiColumn[j]==iCol || pIdx->aiColumn[j]==XN_EXPR ){
87615 pBlob->iCol = iCol;
91217 int iCol, /* A column in the result set. 0..pEList->nExpr-1 */
91226 assert( iCol>=0 && iCol<pEList->nExpr );
91227 pOrig = pEList->a[iCol].pExpr;
91470 int iCol;
91473 for(iCol=0, pCol=pTab->aCol; iCol<pTab->nCol; iCol++, pCol++){
91475 if( iCol==pTab->iPKey ){
91476 iCol = -1;
91481 if( iCol>=pTab->nCol && sqlite3IsRowid(zCol) && VisibleRowid(pTab) ){
91483 iCol = -1;
91485 if( iCol<pTab->nCol ){
91487 if( iCol<0 ){
91490 testcase( iCol==31 );
91491 testcase( iCol==32 );
91492 pParse->oldmask |= (iCol>=32 ? 0xffffffff : (((u32)1)<<iCol));
91494 testcase( iCol==31 );
91495 testcase( iCol==32 );
91496 pParse->newmask |= (iCol>=32 ? 0xffffffff : (((u32)1)<<iCol));
91498 pExpr->iColumn = (i16)iCol;
91659 SQLITE_PRIVATE Expr *sqlite3CreateColumnExpr(sqlite3 *db, SrcList *pSrc, int iSrc, int iCol){
91665 if( p->pTab->iPKey==iCol ){
91668 p->iColumn = (ynVar)iCol;
91669 testcase( iCol==BMS );
91670 testcase( iCol==BMS-1 );
91671 pItem->colUsed |= ((Bitmask)1)<<(iCol>=BMS ? BMS-1 : iCol);
92134 int iCol = -1;
92138 if( sqlite3ExprIsInteger(pE, &iCol) ){
92139 if( iCol<=0 || iCol>pEList->nExpr ){
92144 iCol = resolveAsName(pParse, pEList, pE);
92145 if( iCol==0 ){
92149 iCol = resolveOrderByTermToExprList(pParse, pSelect, pDup);
92154 if( iCol>0 ){
92160 pNew->u.iValue = iCol;
92171 pItem->u.x.iOrderByCol = (u16)iCol;
92255 int iCol; /* Column number */
92267 iCol = resolveAsName(pParse, pSelect->pEList, pE2);
92268 if( iCol>0 ){
92273 pItem->u.x.iOrderByCol = (u16)iCol;
92277 if( sqlite3ExprIsInteger(pE2, &iCol) ){
92281 if( iCol<1 || iCol>0xffff ){
92285 pItem->u.x.iOrderByCol = (u16)iCol;
92711 SQLITE_PRIVATE char sqlite3TableColumnAffinity(Table *pTab, int iCol){
92712 assert( iCol<pTab->nCol );
92713 return iCol>=0 ? pTab->aCol[iCol].affinity : SQLITE_AFF_INTEGER;
94997 int iCol = pEList->a[i].pExpr->iColumn;
94998 char idxaff = sqlite3TableColumnAffinity(pTab,iCol); /* RHS table */
95836 SQLITE_PRIVATE void sqlite3ExprCacheStore(Parse *pParse, int iTab, int iCol, int iReg){
95844 assert( iCol>=-1 && iCol<32768 ); /* Finite column numbers */
95859 assert( p->iTable!=iTab || p->iColumn!=iCol );
95881 p->iColumn = iCol;
95986 int iCol, /* Index of the column to extract */
95990 sqlite3VdbeAddOp3(v, OP_Column, iTabCur, iCol, regOut);
95993 if( iCol<0 || iCol==pTab->iPKey ){
95997 int x = iCol;
95999 x = sqlite3ColumnOfIndex(sqlite3PrimaryKeyIndex(pTab), iCol);
96003 if( iCol>=0 ){
96004 sqlite3ColumnDefault(v, pTab, iCol, regOut);
99112 int iCol; /* If !isPSample, the reason for inclusion */
99179 pTo->iCol = pFrom->iCol;
99300 p->aBest[i].iCol = i;
99341 assert( pNew->iCol==pOld->iCol );
99342 for(i=pNew->iCol+1; i<nCol; i++){
99363 tRowcnt nEqNew = pNew->anEq[pNew->iCol];
99364 tRowcnt nEqOld = pOld->anEq[pOld->iCol];
99367 assert( IsStat4 || (pNew->iCol==0 && pOld->iCol==0) );
99372 if( pNew->iCol<pOld->iCol ) return 1;
99373 return (pNew->iCol==pOld->iCol && sampleIsBetterPost(pAccum, pNew, pOld));
99401 assert( pNew->anEq[pNew->iCol]>0 );
99410 if( pOld->anEq[pNew->iCol]==0 ){
99412 assert( pOld->iCol>pNew->iCol );
99420 pUpgrade->iCol = pNew->iCol;
99421 pUpgrade->anEq[pUpgrade->iCol] = pNew->anEq[pUpgrade->iCol];
99612 p->current.iCol = 0;
99619 p->current.iCol = i;
100448 int iCol;
100458 for(iCol=0; iCol<nCol; iCol++){
100467 if( !pIdx->aiRowEst || iCol>=pIdx->nKeyCol || pIdx->aiRowEst[iCol+1]==0 ){
100468 nRow = pFinal->anLt[iCol];
100469 nDist100 = (i64)100 * pFinal->anDLt[iCol];
100473 nDist100 = ((i64)100 * pIdx->aiRowEst[0]) / pIdx->aiRowEst[iCol+1];
100483 || aSample[i].anDLt[iCol]!=aSample[i+1].anDLt[iCol]
100485 sumEq += aSample[i].anEq[iCol];
100494 pIdx->aAvgEq[iCol] = avgEq;
101495 int iCol; /* Index of column in table */
101517 iCol = pExpr->iColumn;
101520 if( iCol>=0 ){
101521 assert( iCol<pTab->nCol );
101522 zCol = pTab->aCol[iCol].zName;
102439 SQLITE_PRIVATE i16 sqlite3ColumnOfIndex(Index *pIdx, i16 iCol){
102442 if( iCol==pIdx->aiColumn[i] ) return i;
102926 int iCol = -1, i;
102936 iCol = pTab->nCol - 1;
102937 pCol = &pTab->aCol[iCol];
102948 for(iCol=0; iCol<pTab->nCol; iCol++){
102949 if( sqlite3StrICmp(zCName, pTab->aCol[iCol].zName)==0 ){
102950 pCol = &pTab->aCol[iCol];
102963 pTab->iPKey = iCol;
104267 int iCol = p->nCol-1;
104268 if( NEVER(iCol<0) ) goto fk_end;
104272 p->aCol[iCol].zName, pTo);
107265 int iCol; /* Iterator used while populating OLD.* */
107280 for(iCol=0; iCol<pTab->nCol; iCol++){
107281 testcase( mask!=0xffffffff && iCol==31 );
107282 testcase( mask!=0xffffffff && iCol==32 );
107283 if( mask==0xffffffff || (iCol<=31 && (mask & MASKBIT32(iCol))!=0) ){
107284 sqlite3ExprCodeGetColumnOfTable(v, pTab, iDataCur, iCol, iOld+iCol+1);
109664 i16 iCol = pIdx->aiColumn[i]; /* Index of column in parent tbl */
109668 if( iCol<0 ) break; /* No foreign keys against expression indexes */
109673 zDfltColl = pParent->aCol[iCol].zColl;
109677 zIdxCol = pParent->aCol[iCol].zName;
109876 i16 iCol /* Which column of pTab is desired */
109885 if( iCol>=0 && iCol!=pTab->iPKey ){
109886 pCol = &pTab->aCol[iCol];
109887 pExpr->iTable = regBase + iCol + 1;
109908 i16 iCol /* The column that is wanted */
109914 pExpr->iColumn = iCol;
109991 i16 iCol; /* Index of column in child table */
109994 iCol = pIdx ? pIdx->aiColumn[i] : -1;
109995 pLeft = exprTableRegister(pParse, pTab, regData, iCol);
109996 iCol = aiCol ? aiCol[i] : pFKey->aCol[0].iFrom;
109997 assert( iCol>=0 );
109998 zCol = pFKey->pFrom->aCol[iCol].zName;
110028 i16 iCol = pIdx->aiColumn[i];
110029 assert( iCol>=0 );
110030 pLeft = exprTableRegister(pParse, pTab, regData, iCol);
110031 pRight = exprTableColumn(db, pTab, pSrc->a[0].iCursor, iCol);
110298 int iCol;
110344 iCol = pFKey->aCol[0].iFrom;
110345 aiCol = &iCol;
113319 const void * (*column_blob)(sqlite3_stmt*,int iCol);
113320 int (*column_bytes)(sqlite3_stmt*,int iCol);
113321 int (*column_bytes16)(sqlite3_stmt*,int iCol);
113327 double (*column_double)(sqlite3_stmt*,int iCol);
113328 int (*column_int)(sqlite3_stmt*,int iCol);
113329 sqlite_int64 (*column_int64)(sqlite3_stmt*,int iCol);
113336 const unsigned char * (*column_text)(sqlite3_stmt*,int iCol);
113337 const void * (*column_text16)(sqlite3_stmt*,int iCol);
113338 int (*column_type)(sqlite3_stmt*,int iCol);
113339 sqlite3_value* (*column_value)(sqlite3_stmt*,int iCol);
116670 int iCol = aiCols ? aiCols[j] : pFK->aCol[j].iFrom;
116671 sqlite3ExprCodeGetColumnOfTable(v, pTab, 0, iCol, regRow+j);
116933 int iCol = pIdx->aiColumn[kk];
116934 assert( iCol!=XN_ROWID && iCol<pTab->nCol );
116935 if( iCol>=0 && pTab->aCol[iCol].notNull ) continue;
118969 int iCol; /* Index of column matching zCol */
118973 iCol = columnIndex(pSrc->a[i].pTab, zCol);
118974 if( iCol>=0 ){
118977 *piCol = iCol;
119911 int iCol;
119955 for(i=0, iCol=nKey+bSeq; i<nSortData; i++){
119960 iRead = iCol++;
120080 int iCol = pExpr->iColumn; /* Index of column in pTab */
120119 if( iCol>=0 && iCol<pS->pEList->nExpr ){
120125 Expr *p = pS->pEList->a[iCol].pExpr;
120135 if( iCol<0 ) iCol = pTab->iPKey;
120136 assert( iCol==XN_ROWID || (iCol>=0 && iCol<pTab->nCol) );
120137 if( iCol<0 ){
120141 zOrigCol = pTab->aCol[iCol].zName;
120142 zType = sqlite3ColumnType(&pTab->aCol[iCol],0);
120150 assert( iCol==XN_ROWID || (iCol>=0 && iCol<pTab->nCol) );
120151 if( iCol<0 ){
120154 zType = sqlite3ColumnType(&pTab->aCol[iCol],0);
120305 int iCol = p->iColumn;
120308 if( iCol<0 ) iCol = pTab->iPKey;
120309 assert( iCol==-1 || (iCol>=0 && iCol<pTab->nCol) );
120310 if( iCol<0 ){
120313 zCol = pTab->aCol[iCol].zName;
120396 int iCol = pColExpr->iColumn;
120399 if( iCol<0 ) iCol = pTab->iPKey;
120400 zName = iCol>=0 ? pTab->aCol[iCol].zName : "rowid";
120637 static CollSeq *multiSelectCollSeq(Parse *pParse, Select *p, int iCol){
120640 pRet = multiSelectCollSeq(pParse, p->pPrior, iCol);
120644 assert( iCol>=0 );
120648 if( pRet==0 && ALWAYS(iCol<p->pEList->nExpr) ){
120649 pRet = sqlite3ExprCollSeq(pParse, p->pEList->a[iCol].pExpr);
127932 int iCol;
127942 for(iCol=0; iCol<pTab->nCol; iCol++){
127943 char *zType = sqlite3ColumnType(&pTab->aCol[iCol], "");
127965 pTab->aCol[iCol].colFlags |= COLFLAG_HIDDEN;
129756 int iCol = aiMap ? aiMap[iMap++] : 0;
129757 pIn->addrInTop = sqlite3VdbeAddOp3(v,OP_Column,iTab, iCol, iOut);
131131 int iCol = pPk->aiColumn[iPk];
131132 sqlite3ExprCodeGetColumnToReg(pParse, pTab, iCol, iCur, r+iPk);
131597 int iCol = pRight->iColumn;
131598 pVal = sqlite3VdbeGetBoundValue(pReprepare, iCol, SQLITE_AFF_BLOB);
131602 sqlite3VdbeSetVarmask(pParse->pVdbe, iCol);
133318 int iCol /* Column of index to match */
133321 const char *zColl = pIdx->azColl[iCol];
133326 && p->iColumn==pIdx->aiColumn[iCol]
133342 static int indexColumnNotNull(Index *pIdx, int iCol){
133345 assert( iCol>=0 && iCol<pIdx->nColumn );
133346 j = pIdx->aiColumn[iCol];
133616 int iCol = pTerm->u.leftColumn;
133617 Bitmask cMask = iCol>=BMS ? MASKBIT(BMS-1) : MASKBIT(iCol);
133618 testcase( iCol==BMS );
133619 testcase( iCol==BMS-1 );
133623 pTable->aCol[iCol].zName);
133669 int iCol = pTerm->u.leftColumn;
133670 Bitmask cMask = iCol>=BMS ? MASKBIT(BMS-1) : MASKBIT(iCol);
133671 testcase( iCol==BMS-1 );
133672 testcase( iCol==BMS );
133973 int iCol; /* Index of required stats in anEq[] etc. */
134034 iCol = 0;
134064 iCol = n-1;
134077 assert( iCol==nField-1 );
134087 pRec->nField = iCol+1;
134096 if( iCol>0 ){
134097 pRec->nField = iCol;
134112 assert( iCol==nField-1 );
134113 aStat[0] = aSample[i].anLt[iCol];
134114 aStat[1] = aSample[i].anEq[iCol];
134123 iUpper = aSample[i].anLt[iCol];
134174 SQLITE_PRIVATE char sqlite3IndexColumnAffinity(sqlite3 *db, Index *pIdx, int iCol){
134175 assert( iCol>=0 && iCol<pIdx->nColumn );
134179 return pIdx->zColAff[iCol];
135386 int iCol = pProbe->aiColumn[saved_nEq];
135389 if( iCol==XN_ROWID
135390 || (iCol>=0 && nInMul==0 && saved_nEq==pProbe->nKeyCol-1)
135392 if( iCol>=0 && pProbe->uniqNotNull==0 ){
146787 int iCol = 0;
146820 for(iCol=0; iCol<pTab->nCol; iCol++){
146821 pCol = &pTab->aCol[iCol];
146826 if( iCol==pTab->nCol ){
146828 iCol = pTab->iPKey;
146829 pCol = iCol>=0 ? &pTab->aCol[iCol] : 0;
146852 autoinc = pTab->iPKey==iCol && (pTab->tabFlags & TF_Autoincrement)!=0;
148388 int fts3_global_term_cnt(int iTerm, int iCol);
148389 int fts3_term_cnt(int iTerm, int iCol);
148985 int iCol;
149070 SQLITE_PRIVATE int sqlite3Fts3EvalPhrasePoslist(Fts3Cursor *, Fts3Expr *, int iCol, char **);
149925 int iCol; /* Column index */
150198 for(iCol=0; iCol<nCol; iCol++){
150201 z = (char *)sqlite3Fts3NextToken(aCol[iCol], &n);
150207 p->azColumn[iCol] = zCsr;
150213 for(iCol=0; iCol<nCol; iCol++){
150214 int n = (int)strlen(p->azColumn[iCol]);
150218 && 0==sqlite3_strnicmp(p->azColumn[iCol], zNot, n)
150220 p->abNotindexed[iCol] = 1;
150917 static int fts3PutColNumber(char **pp, int iCol){
150919 if( iCol ){
150921 n = 1 + sqlite3Fts3PutVarint(&p[1], iCol);
151471 sqlite3_int64 iCol;
151473 p += sqlite3Fts3GetVarint(p, &iCol);
151480 nOut += sqlite3Fts3PutVarint(&pOut[nOut], iCol);
151869 filter.iCol = iColumn;
152043 int iCol = eSearch-FTS3_FULLTEXT_SEARCH;
152055 p->azColumn, p->bFts4, p->nColumn, iCol, zQuery, -1, &pCsr->pExpr,
152142 int iCol /* Index of column to read value from */
152149 assert( iCol>=0 && iCol<=p->nColumn+2 );
152151 switch( iCol-p->nColumn ){
152170 iCol = p->nColumn;
152178 if( rc==SQLITE_OK && sqlite3_data_count(pCsr->pStmt)-1>iCol ){
152179 sqlite3_result_value(pCtx, sqlite3_column_value(pCsr->pStmt, iCol+1));
152397 int iCol = -1;
152414 case 5: iCol = sqlite3_value_int(apVal[4]);
152424 sqlite3Fts3Snippet(pContext, pCsr, zStart, zEnd, zEllipsis, iCol, nToken);
153101 int iCol = (p->iColumn >= pTab->nColumn ? -1 : p->iColumn);
153106 rc = sqlite3Fts3MsrIncrStart(pTab, pSegcsr, iCol, pToken->z, pToken->n);
153520 int iCol; /* The column the token must match */
153548 pTC->iCol = pPhrase->iColumn;
153727 rc = sqlite3Fts3DeferToken(pCsr, pToken, pTC->iCol);
153743 rc = fts3TermSelect(pTab, pToken, pTC->iCol, &nList, &pList);
154385 int iCol = 0;
154400 pExpr->aMI[iCol*3 + 1] += iCnt;
154401 pExpr->aMI[iCol*3 + 2] += (iCnt>0);
154404 p += fts3GetVarint32(p, &iCol);
154542 int iCol;
154546 for(iCol=0; iCol<pTab->nColumn; iCol++){
154547 aiOut[iCol*3 + 1] = (u32)pCsr->nDoc;
154548 aiOut[iCol*3 + 2] = (u32)pCsr->nDoc;
154554 for(iCol=0; iCol<pTab->nColumn; iCol++){
154555 aiOut[iCol*3 + 1] = pExpr->aMI[iCol*3 + 1];
154556 aiOut[iCol*3 + 2] = pExpr->aMI[iCol*3 + 2];
154586 int iCol, /* Column to return position list for */
154598 assert( iCol>=0 && iCol<pTab->nColumn );
154599 if( (pPhrase->iColumn<pTab->nColumn && pPhrase->iColumn!=iCol) ){
154696 while( iThis<iCol ){
154706 *ppOut = ((iCol==iThis)?pIter:0);
154798 int iCol; /* Current value of 'col' column */
154935 int iCol = pInfo->aConstraint[i].iColumn;
154937 if( iCol==0 ){
154944 if( iCol==4 ){
155035 for(pCsr->iCol++; pCsr->iCol<pCsr->nStat; pCsr->iCol++){
155036 if( pCsr->aStat[pCsr->iCol].nDoc>0 ) return SQLITE_OK;
155044 int iCol;
155059 iCol = 0;
155070 iCol = 0;
155082 assert( iCol==0 );
155095 pCsr->aStat[iCol+1].nOcc++;
155102 iCol = (int)v;
155103 if( fts3auxGrowStatArray(pCsr, iCol+2) ) return SQLITE_NOMEM;
155104 pCsr->aStat[iCol+1].nDoc++;
155110 pCsr->iCol = 0;
155227 int iCol /* Index of column to read value from */
155232 switch( iCol ){
155238 if( p->iCol ){
155239 sqlite3_result_int(pCtx, p->iCol-1);
155246 sqlite3_result_int64(pCtx, p->aStat[p->iCol].nDoc);
155250 sqlite3_result_int64(pCtx, p->aStat[p->iCol].nOcc);
155254 assert( iCol==4 );
155491 int iCol, /* Value for Fts3Phrase.iColumn */
155526 pRet->pPhrase->iColumn = iCol;
155724 int iCol;
155835 iCol = pParse->iDefaultCol;
155843 iCol = ii;
155848 rc = getNextToken(pParse, iCol, &z[iColLen], n-iColLen, ppExpr, pnConsumed);
158812 int iCol /* Index of column to read value from */
158817 switch( iCol ){
158831 assert( iCol==4 );
159004 int iCol; /* Column token must occur in */
159577 sqlite3_int64 iCol, /* Column for entry to add */
159600 if( iCol>0 && p->iLastCol!=iCol ){
159602 || SQLITE_OK!=(rc = fts3PendingListAppendVarint(&p, iCol))
159606 p->iLastCol = iCol;
159609 if( iCol>=0 ){
159638 int iCol,
159651 if( fts3PendingListAppend(&pList, p->iPrevDocid, iCol, iPos, &rc) ){
159678 int iCol, /* Column into which text is being inserted */
159728 p, iCol, iPos, &p->aIndex[0].hPending, zToken, nToken
159737 p, iCol, iPos, &pIndex->hPending, zToken, pIndex->nPrefix
159814 int iCol = i-2;
159815 if( p->abNotindexed[iCol]==0 ){
159817 int rc = fts3PendingTermsAdd(p, iLangid, zText, iCol, &aSz[iCol]);
159970 int iCol = i-1;
159971 if( p->abNotindexed[iCol]==0 ){
159973 rc = fts3PendingTermsAdd(p, iLangid, zText, -1, &aSz[iCol]);
161472 int iCol, /* Column to filter on */
161483 assert( iCol>=0 );
161488 if( iCol==iCurrent ){
161645 int iCol, /* Column to match on. */
161679 assert( iCol<0 || iCol<p->nColumn );
161680 pCsr->iColFilter = iCol;
161833 fts3ColumnFilter(pFilter->iCol, 0, &pList, &nList);
161924 int iCol,
161928 const unsigned char *zText = sqlite3_column_text(pStmt, iCol);
162420 int iCol;
162424 for(iCol=0; rc==SQLITE_OK && iCol<p->nColumn; iCol++){
162425 if( p->abNotindexed[iCol]==0 ){
162426 const char *z = (const char *) sqlite3_column_text(pStmt, iCol+1);
162427 rc = fts3PendingTermsAdd(p, iLangid, z, iCol, &aSz[iCol]);
162428 aSz[p->nColumn] += sqlite3_column_bytes(pStmt, iCol+1);
162439 for(iCol=0; iCol<=p->nColumn; iCol++){
162440 aSzIns[iCol] += aSz[iCol];
163956 int iCol, /* Column number */
163964 ret += (ret<<3) + iCol;
164011 i64 iCol = 0;
164020 iCol = 0;
164023 pCsr += sqlite3Fts3GetVarint(pCsr, &iCol);
164032 (int)iCol, (int)iPos
164094 int iCol;
164096 for(iCol=0; rc==SQLITE_OK && iCol<p->nColumn; iCol++){
164097 if( p->abNotindexed[iCol]==0 ){
164098 const char *zText = (const char *)sqlite3_column_text(pStmt, iCol+1);
164099 int nText = sqlite3_column_bytes(pStmt, iCol+1);
164113 zToken, nToken, iLang, 0, iDocid, iCol, iPos
164118 zToken, p->aIndex[i].nPrefix, iLang, i, iDocid, iCol, iPos
164286 if( (pDef->iCol>=p->nColumn || pDef->iCol==i)
164343 int iCol /* Column that token must appear in (or -1) */
164353 pDeferred->iCol = iCol;
164643 int iCol; /* Extract snippet from this column */
164660 int iCol; /* Column snippet is extracted from */
165055 rc = sqlite3Fts3EvalPhrasePoslist(p->pCsr, pExpr, p->iCol, &pCsr);
165093 int iCol, /* Index of column to create snippet from */
165130 sIter.iCol = iCol;
165147 pFragment->iCol = iCol;
165312 int iCol = pFragment->iCol+1; /* Query column to extract text from */
165316 zDoc = (const char *)sqlite3_column_text(pCsr->pStmt, iCol);
165318 if( sqlite3_column_type(pCsr->pStmt, iCol)!=SQLITE_NULL ){
165323 nDoc = sqlite3_column_bytes(pCsr->pStmt, iCol);
165446 int iCol = 0;
165457 if( (pPhrase->iColumn>=pTab->nColumn || pPhrase->iColumn==iCol) ){
165459 p->aMatchinfo[iStart + iCol] = (u32)nHit;
165461 p->aMatchinfo[iStart + (iCol+1)/32] |= (1 << (iCol&0x1F));
165467 pIter += fts3GetVarint32(pIter, &iCol);
165701 int iCol;
165718 for(iCol=0; iCol<pInfo->nCol; iCol++){
165725 rc = sqlite3Fts3EvalPhrasePoslist(pCsr, pIt->pExpr, iCol, &pIt->pRead);
165758 pInfo->aMatchinfo[iCol] = nLcs;
165819 int iCol;
165820 for(iCol=0; iCol<pInfo->nCol; iCol++){
165825 pInfo->aMatchinfo[iCol] = iVal;
165835 int iCol;
165837 for(iCol=0; iCol<pInfo->nCol; iCol++){
165840 pInfo->aMatchinfo[iCol] = (u32)nToken;
165985 int iCol, /* Extract snippet from this column */
166036 if( iCol>=0 && iRead!=iCol ) continue;
166089 int iCol; /* Column of table to populate aTerm for */
166107 rc = sqlite3Fts3EvalPhrasePoslist(p->pCsr, pExpr, p->iCol, &pList);
166135 int iCol; /* Column currently being processed */
166163 for(iCol=0; iCol<pTab->nColumn; iCol++){
166177 sCtx.iCol = iCol;
166187 zDoc = (const char *)sqlite3_column_text(pCsr->pStmt, iCol+1);
166188 nDoc = sqlite3_column_bytes(pCsr->pStmt, iCol+1);
166190 if( sqlite3_column_type(pCsr->pStmt, iCol+1)==SQLITE_NULL ){
166233 "%d %d %d %d ", iCol, pTerm-sCtx.aTerm, iStart, iEnd-iStart
170031 static int rtreeConstraintError(Rtree *pRtree, int iCol){
170036 assert( iCol==0 || iCol%2 );
170046 if( iCol==0 ){
170052 const char *zCol1 = sqlite3_column_name(pStmt, iCol);
170053 const char *zCol2 = sqlite3_column_name(pStmt, iCol+1);
174580 int iCol;
174583 for(iCol=0; p->rc==SQLITE_OK && iCol<pIter->nTblCol; iCol++){
174585 const char *zCol = pIter->azTblCol[iCol];
174592 if( pIter->eType==RBU_PK_IPK && pIter->abTblPk[iCol] ){
174598 zSql, zComma, zCol, pIter->azTblType[iCol], zPk, zColl,
174599 (pIter->abNotNull[iCol] ? " NOT NULL" : "")
175590 int iCol = p->objiter.nCol; /* Index of rbu_control column */
175593 switch( sqlite3_column_type(p->objiter.pSelect, iCol) ){
175595 int iVal = sqlite3_column_int(p->objiter.pSelect, iCol);
175607 const unsigned char *z = sqlite3_column_text(p->objiter.pSelect, iCol);
175632 static void assertColumnName(sqlite3_stmt *pStmt, int iCol, const char *zName){
175633 const char *zCol = sqlite3_column_name(pStmt, iCol);
179364 int iCol; /* Used to iterate through table columns */
179366 for(iCol=0; iCol<pTab->nCol; iCol++){
179367 if( pTab->abPK[iCol] ){
179371 if( pTab->abPK[iCol] && (n1!=n2 || memcmp(a1, a2, n1)) ){
179407 int iCol; /* Used to iterate from 0 to nCol */
179409 for(iCol=0; iCol<nCol; iCol++){
179561 int iCol; /* Used to iterate through columns */
179565 for(iCol=0; iCol<pTab->nCol; iCol++){
179566 if( !pTab->abPK[iCol] ){
179580 rc = pSession->hook.xNew(pSession->hook.pCtx, iCol, &pVal);
179583 rc = pSession->hook.xOld(pSession->hook.pCtx, iCol, &pVal);
179844 static int sessionStat1Old(void *pCtx, int iCol, sqlite3_value **ppVal){
179847 int rc = p->hook.xOld(p->hook.pCtx, iCol, &pVal);
179848 if( rc==SQLITE_OK && iCol==1 && sqlite3_value_type(pVal)==SQLITE_NULL ){
179854 static int sessionStat1New(void *pCtx, int iCol, sqlite3_value **ppVal){
179857 int rc = p->hook.xNew(p->hook.pCtx, iCol, &pVal);
179858 if( rc==SQLITE_OK && iCol==1 && sqlite3_value_type(pVal)==SQLITE_NULL ){
180727 int iCol, /* Column to read value from */
180731 int eType = sqlite3_column_type(pStmt, iCol);
180737 i = sqlite3_column_int64(pStmt, iCol);
180739 double r = sqlite3_column_double(pStmt, iCol);
180749 z = (u8 *)sqlite3_column_blob(pStmt, iCol);
180751 z = (u8 *)sqlite3_column_text(pStmt, iCol);
180753 nByte = sqlite3_column_bytes(pStmt, iCol);
181154 int iCol;
181157 for(iCol=0; iCol<nCol; iCol++){
181158 sessionAppendCol(&buf, pSel, iCol, &rc);
182023 int iCol;
182048 for(iCol=0; iCol<nCol; iCol++){
182049 sqlite3_value *pVal = apVal[iCol + (abPK[iCol] ? 0 : nCol)];
182056 for(iCol=0; iCol<nCol; iCol++){
182057 sqlite3_value *pVal = (abPK[iCol] ? 0 : apVal[iCol]);
182061 for(iCol=0; iCol<nCol*2; iCol++){
182062 sqlite3ValueFree(apVal[iCol]);
186305 int (*xColumnTotalSize)(Fts5Context*, int iCol, sqlite3_int64 *pnToken);
186320 int (*xColumnText)(Fts5Context*, int iCol, const char **pz, int *pn);
186321 int (*xColumnSize)(Fts5Context*, int iCol, int *pnToken);
186980 int iCol,
187041 int iCol, /* Column token appears in (-ve -> delete) */
187164 int iCol, /* Column token appears in (-ve -> delete) */
187227 static int sqlite3Fts5StorageSize(Fts5Storage *p, int iCol, i64 *pnAvg);
187266 int iCol, /* Column on LHS of MATCH operator */
188852 int iCol; /* Column to search */
188874 if( ic==pIter->iCol ){
188899 int iCol,
188907 pIter->iCol = iCol;
189023 int iCol;
189031 iCol = sqlite3_value_int(apVal[0]);
189035 rc = pApi->xColumnText(pFts, iCol, &ctx.zIn, &ctx.nIn);
189039 rc = fts5CInstIterInit(pApi, pFts, iCol, &ctx.iter);
189134 int iCol, /* Column to score */
189153 if( rc==SQLITE_OK && ic==iCol && iOff>=iPos && iOff<(iPos+nToken) ){
189194 int iCol; /* 1st argument to snippet() */
189216 iCol = sqlite3_value_int(apVal[0]);
189222 iBestCol = (iCol>=0 ? iCol : 0);
189234 if( iCol<0 || iCol==i ){
191101 int iCol,
191128 if( iCol<pConfig->nCol && sParse.pExpr && sParse.rc==SQLITE_OK ){
191133 pColset->aiCol[0] = iCol;
192714 int iCol /* New column to add to colset object */
192720 assert( iCol>=0 && iCol<pParse->pConfig->nCol );
192729 if( aiCol[i]==iCol ) return pNew;
192730 if( aiCol[i]>iCol ) break;
192735 aiCol[i] = iCol;
192781 int iCol;
192788 for(iCol=0; iCol<pConfig->nCol; iCol++){
192789 if( 0==sqlite3_stricmp(pConfig->azCol[iCol], z) ) break;
192791 if( iCol==pConfig->nCol ){
192794 pRet = fts5ParseColset(pParse, pColset, iCol);
193246 int iCol = pNear->pColset->aiCol[0];
193247 zRet = fts5PrintfAppend(zRet, "%s : ", pConfig->azCol[iCol]);
193556 static int fts5ExprColsetTest(Fts5Colset *pColset, int iCol){
193559 if( pColset->aiCol[i]==iCol ) return 1;
193603 int iCol,
193610 sCtx.iOff = (((i64)iCol) << 32) - 1;
193615 if( (pColset && 0==fts5ExprColsetTest(pColset, iCol))
193795 i16 iCol; /* Column of last value written */
193959 int iCol, /* Column token appears in (-ve -> delete) */
194021 p->iCol = (pHash->eDetail==FTS5_DETAIL_FULL ? 0 : -1);
194064 p->iCol = (pHash->eDetail==FTS5_DETAIL_FULL ? 0 : -1);
194069 if( iCol>=0 ){
194074 assert( iCol>=p->iCol );
194075 if( iCol!=p->iCol ){
194078 p->nData += sqlite3Fts5PutVarint(&pPtr[p->nData], iCol);
194079 p->iCol = (i16)iCol;
194083 p->iCol = (i16)(iPos = iCol);
197226 static int fts5IndexColsetTest(Fts5Colset *pColset, int iCol){
197229 if( pColset->aiCol[i]==iCol ) return 1;
197272 int iCol;
197273 fts5FastGetVarint32(pChunk, i, iCol);
197274 if( fts5IndexColsetTest(pCtx->pColset, iCol) ){
197291 int iCol;
197297 fts5FastGetVarint32(pChunk, i, iCol);
197298 pCtx->eState = fts5IndexColsetTest(pCtx->pColset, iCol);
197394 int iCol /* Column to extract from poslist */
197400 while( iCol>iCurrent ){
197417 if( iCol!=iCurrent ) return 0;
199560 int iCol, /* Column token appears in (-ve -> delete) */
199569 assert( (iCol<0)==p->bDelete );
199573 p->pHash, p->iWriteRowid, iCol, iPos, FTS5_MAIN_PREFIX, pToken, nToken
199581 p->iWriteRowid, iCol, iPos, (char)(FTS5_MAIN_PREFIX+i+1), pToken,
199753 int iCol;
199755 for(iCol=0; i<pData->nn && iCol<nCol; iCol++){
199756 i += fts5GetVarint(&pData->p[i], (u64*)&anSize[iCol]);
199828 int iCol,
199836 ret += (ret<<3) + iCol;
199912 int iCol = FTS5_POS2COLUMN(sReader.iPos);
199914 cksum ^= sqlite3Fts5IndexEntryCksum(rowid, iCol, iOff, iIdx, z, n);
200284 int iCol = FTS5_POS2COLUMN(iPos);
200286 cksum2 ^= sqlite3Fts5IndexEntryCksum(iRowid, iCol, iTokOff, -1, z, n);
201286 int iCol; /* 0==rowid, 1==tbl, 2==rank */
201309 int iCol = p->iColumn;
201311 if( (p->op==SQLITE_INDEX_CONSTRAINT_MATCH && iCol>=0 && iCol<=nCol)
201312 || (p->op==SQLITE_INDEX_CONSTRAINT_EQ && iCol==nCol)
201316 idxFlags = (idxFlags & 0xFFFF) | FTS5_BI_MATCH | (iCol << 16);
201328 if( iCol==aColMap[pC->iCol] && p->op & pC->op && p->usable ){
201907 int iCol; /* Column on LHS of MATCH operator */
201938 iCol = (idxNum>>16);
201939 assert( iCol>=0 && iCol<=pConfig->nCol );
201986 rc = sqlite3Fts5ExprNew(pConfig, iCol, zExpr, &pCsr->pExpr, pzErr);
202417 int iCol,
202422 return sqlite3Fts5StorageSize(pTab->pStorage, iCol, pnToken);
202456 int iCol,
202468 *pz = (const char*)sqlite3_column_text(pCsr->pStmt, iCol+1);
202469 *pn = sqlite3_column_bytes(pCsr->pStmt, iCol+1);
202654 static int fts5ApiColumnSize(Fts5Context *pCtx, int iCol, int *pnToken){
202689 if( iCol<0 ){
202695 }else if( iCol<pConfig->nCol ){
202696 *pnToken = pCsr->aColumnSize[iCol];
203086 int iCol /* Index of column to read value from */
203096 if( iCol==pConfig->nCol ){
203101 if( iCol==pConfig->nCol ){
203107 }else if( iCol==pConfig->nCol+1 ){
203123 sqlite3_result_value(pCtx, sqlite3_column_value(pCsr->pStmt, iCol+1));
203874 int iCol;
203896 return sqlite3Fts5IndexWrite(pIdx, pCtx->iCol, pCtx->szCol-1, pToken, nToken);
203913 int iCol;
203926 ctx.iCol = -1;
203928 for(iCol=1; rc==SQLITE_OK && iCol<=pConfig->nCol; iCol++){
203929 if( pConfig->abUnindexed[iCol-1]==0 ){
203933 zText = (const char*)sqlite3_column_text(pSeek, iCol);
203934 nText = sqlite3_column_bytes(pSeek, iCol);
203936 zText = (const char*)sqlite3_value_text(apVal[iCol-1]);
203937 nText = sqlite3_value_bytes(apVal[iCol-1]);
203943 p->aTotalSize[iCol-1] -= (i64)ctx.szCol;
204122 for(ctx.iCol=0; rc==SQLITE_OK && ctx.iCol<pConfig->nCol; ctx.iCol++){
204124 if( pConfig->abUnindexed[ctx.iCol]==0 ){
204127 (const char*)sqlite3_column_text(pScan, ctx.iCol+1),
204128 sqlite3_column_bytes(pScan, ctx.iCol+1),
204134 p->aTotalSize[ctx.iCol] += (i64)ctx.szCol;
204245 for(ctx.iCol=0; rc==SQLITE_OK && ctx.iCol<pConfig->nCol; ctx.iCol++){
204247 if( pConfig->abUnindexed[ctx.iCol]==0 ){
204250 (const char*)sqlite3_value_text(apVal[ctx.iCol+2]),
204251 sqlite3_value_bytes(apVal[ctx.iCol+2]),
204257 p->aTotalSize[ctx.iCol] += (i64)ctx.szCol;
204301 int iCol;
204326 int iCol;
204338 iCol = pCtx->iCol;
204342 iPos = pCtx->iCol;
204343 iCol = 0;
204349 iCol = 0;
204356 pCtx->iRowid, iCol, iPos, 0, pToken, nToken
204367 pCtx->iRowid, iCol, iPos, ii+1, pToken, nByte
204414 ctx.iCol = i;
204571 static int sqlite3Fts5StorageSize(Fts5Storage *p, int iCol, i64 *pnToken){
204575 if( iCol<0 ){
204580 }else if( iCol<p->pConfig->nCol ){
204581 *pnToken = p->aTotalSize[iCol];
206664 int iCol;
207066 for(pCsr->iCol++; pCsr->iCol<nCol; pCsr->iCol++){
207067 if( pCsr->aDoc[pCsr->iCol] ) break;
207071 if( pTab->eType!=FTS5_VOCAB_COL || pCsr->iCol>=nCol ){
207091 pCsr->iCol = 0;
207115 int iCol = -1;
207119 if( iCol!=ii ){
207125 iCol = ii;
207165 while( pCsr->aDoc[pCsr->iCol]==0 ) pCsr->iCol++;
207166 assert( pCsr->iCol<pCsr->pConfig->nCol );
207251 int iCol /* Index of column to read value from */
207258 if( iCol==0 ){
207263 assert( iCol==1 || iCol==2 || iCol==3 );
207264 if( iCol==1 ){
207266 const char *z = pCsr->pConfig->azCol[pCsr->iCol];
207269 }else if( iCol==2 ){
207270 iVal = pCsr->aDoc[pCsr->iCol];
207272 iVal = pCsr->aCnt[pCsr->iCol];
207275 assert( iCol==1 || iCol==2 );
207276 if( iCol==1 ){
207283 switch( iCol ){
207301 assert( iCol==3 );