Lines Matching refs:aCol
12186 Column *aCol; /* Information about each column */
12194 i16 iPKey; /* If not negative, use aCol[iPKey] as the rowid */
12295 } aCol[1]; /* One entry for each of nCol columns */
12400 ** first column to be indexed (c3) has an index of 2 in Ex1.aCol[].
12402 ** Ex1.aCol[], hence Ex2.aiColumn[1]==0.
12503 ** AggInfo.aCol[] or AggInfo.aFunc[] of information needed to generate
12518 int mnReg, mxReg; /* Range of registers allocated for aCol and aFunc */
12527 } *aCol;
12528 int nColumn; /* Number of used entries in aCol[] */
12655 i16 iAgg; /* Which entry in pAggInfo->aCol[] or ->aFunc[] */
12795 int idx; /* Index in some Table.aCol[] of a column named zName */
79828 if( sqlite3StrICmp(pTab->aCol[iCol].zName, zColumn)==0 ){
79857 if( pFKey->aCol[j].iFrom==iCol ){
83773 for(j=0, pCol=pTab->aCol; j<pTab->nCol; j++, pCol++){
83824 for(iCol=0, pCol=pTab->aCol; iCol<pTab->nCol; iCol++, pCol++){
85056 return pExpr->pTab->aCol[j].affinity;
85144 const char *zColl = p->pTab->aCol[j].zColl;
86483 (p->iColumn>=0 && p->pTab->aCol[p->iColumn].notNull==0);
86756 int affinity_ok = sqlite3IndexAffinityOk(pX, pTab->aCol[iCol].affinity);
86770 if( prRhsHasNull && !pTab->aCol[iCol].notNull ){
87622 struct AggInfo_col *pCol = &pAggInfo->aCol[pExpr->iAgg];
88072 (pExpr->iColumn<0 ? "rowid" : pExpr->pTab->aCol[pExpr->iColumn].zName),
88083 && pTab->aCol[pExpr->iColumn].affinity==SQLITE_AFF_REAL
88935 ** Add a new element to the pAggInfo->aCol[] array. Return the index of
88940 pInfo->aCol = sqlite3ArrayAllocate(
88942 pInfo->aCol,
88943 sizeof(pInfo->aCol[0]),
88994 ** Make an entry for the column in pAggInfo->aCol[] if there
88998 pCol = pAggInfo->aCol;
89008 pCol = &pAggInfo->aCol[k];
89033 /* There is now an entry for pExpr in pAggInfo->aCol[] (either
89036 ** pAggInfo->aCol[] entry.
89849 pCol = &pNew->aCol[pNew->nCol-1];
90006 pNew->aCol = (Column*)sqlite3DbMallocZero(db, sizeof(Column)*nAlloc);
90008 if( !pNew->aCol || !pNew->zName ){
90012 memcpy(pNew->aCol, pTab->aCol, sizeof(Column)*pNew->nCol);
90014 Column *pCol = &pNew->aCol[i];
91229 VdbeComment((v, "%s", pTab->aCol[pPk->aiColumn[j]].zName));
92698 zCol = pTab->aCol[iCol].zName;
92701 zCol = pTab->aCol[pTab->iPKey].zName;
93357 ** Table.aCol[] array).
93363 if( (pCol = pTable->aCol)!=0 ){
93371 sqlite3DbFree(db, pTable->aCol);
93871 if( STRICMP(z, p->aCol[i].zName) ){
93879 aNew = sqlite3DbRealloc(db,p->aCol,(p->nCol+8)*sizeof(p->aCol[0]));
93884 p->aCol = aNew;
93886 pCol = &p->aCol[p->nCol];
93887 memset(pCol, 0, sizeof(p->aCol[0]));
93909 p->aCol[p->nCol-1].notNull = (u8)onError;
94014 pCol = &p->aCol[p->nCol-1];
94037 pCol = &(p->aCol[p->nCol-1]);
94118 pTab->aCol[iCol].colFlags |= COLFLAG_PRIMKEY;
94119 zType = pTab->aCol[iCol].zType;
94130 if( sqlite3StrICmp(zCName, pTab->aCol[iCol].zName)==0 ){
94131 pTab->aCol[iCol].colFlags |= COLFLAG_PRIMKEY;
94132 zType = pTab->aCol[iCol].zType;
94210 sqlite3DbFree(db, p->aCol[i].zColl);
94211 p->aCol[i].zColl = zColl;
94220 pIdx->azColl[0] = p->aCol[i].zColl;
94352 for(pCol = p->aCol, i=0; i<p->nCol; i++, pCol++){
94375 for(pCol=p->aCol, i=0; i<p->nCol; i++, pCol++){
94442 for(i=pTab->nCol, pTabCol=pTab->aCol; i>0; i--, pTabCol++){
94455 const Column *aCol = pIdx->pTable->aCol;
94459 wIndex += x<0 ? 1 : aCol[pIdx->aiColumn[i]].szEst;
94517 ipkToken.z = pTab->aCol[pTab->iPKey].zName;
94562 pTab->aCol[pPk->aiColumn[i]].notNull = 1;
94769 assert( p->aCol==0 );
94771 p->aCol = pSelTab->aCol;
94773 pSelTab->aCol = 0;
95002 &pTable->nCol, &pTable->aCol);
95020 assert( pTable->aCol==0 );
95022 pTable->aCol = pSelTab->aCol;
95024 pSelTab->aCol = 0;
95055 pTab->aCol = 0;
95433 p->aCol[iCol].zName, pTo);
95445 nByte = sizeof(*pFKey) + (nCol-1)*sizeof(pFKey->aCol[0]) + pTo->n + 1;
95457 z = (char*)&pFKey->aCol[nCol];
95465 pFKey->aCol[0].iFrom = p->nCol-1;
95470 if( sqlite3StrICmp(p->aCol[j].zName, pFromCol->a[i].zName)==0 ){
95471 pFKey->aCol[i].iFrom = j;
95486 pFKey->aCol[i].zCol = z;
95861 prevCol.z = pTab->aCol[pTab->nCol-1].zName;
95959 }else if( pTab->aCol[j].notNull==0 ){
95975 zColl = pTab->aCol[j].zColl;
96942 zCol = pTab->aCol[pIdx->aiColumn[j]].zName;
96967 pTab->aCol[pTab->iPKey].zName);
100582 char *zKey = pFKey->aCol[0].zCol; /* Name of left-most parent key column */
100607 if( !sqlite3StrICmp(pParent->aCol[pParent->iPKey].zName, zKey) ) return 0;
100629 for(i=0; i<nCol; i++) aiCol[i] = pFKey->aCol[i].iFrom;
100649 zDfltColl = pParent->aCol[iCol].zColl;
100655 zIdxCol = pParent->aCol[iCol].zName;
100657 if( sqlite3StrICmp(pFKey->aCol[j].zCol, zIdxCol)==0 ){
100658 if( aiCol ) aiCol[i] = pFKey->aCol[j].iFrom;
100864 pCol = &pTab->aCol[iCol];
100974 iCol = aiCol ? aiCol[i] : pFKey->aCol[0].iFrom;
100976 zCol = pFKey->pFrom->aCol[iCol].zName;
101163 int iChildKey = p->aCol[i].iFrom;
101190 char *zKey = p->aCol[i].zCol;
101194 Column *pCol = &pTab->aCol[iKey];
101308 int iReg = pFKey->aCol[i].iFrom + regOld + 1;
101320 iCol = pFKey->aCol[0].iFrom;
101334 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zName;
101453 for(i=0; i<p->nCol; i++) mask |= COLUMN_MASK(p->aCol[i].iFrom);
101582 iFromCol = aiCol ? aiCol[i] : pFKey->aCol[0].iFrom;
101586 tToCol.z = pTab->aCol[pIdx ? pIdx->aiColumn[i] : pTab->iPKey].zName;
101587 tFromCol.z = pFKey->pFrom->aCol[iFromCol].zName;
101632 Expr *pDflt = pFKey->pFrom->aCol[iFromCol].pDflt;
101894 pIdx->zColAff[n] = pTab->aCol[x].affinity;
101944 zColAff[i] = pTab->aCol[i].affinity;
102421 if( sqlite3StrICmp(pColumn->a[i].zName, pTab->aCol[j].zName)==0 ){
102543 nHidden += (IsHiddenColumn(&pTab->aCol[i]) ? 1 : 0);
102649 aCol[i].pDflt, regCols+i+1);
102738 if( IsHiddenColumn(&pTab->aCol[i]) ){
102751 sqlite3ExprCodeFactorable(pParse, pTab->aCol[i].pDflt, iRegStore);
103002 onError = pTab->aCol[i].notNull;
103009 if( onError==OE_Replace && pTab->aCol[i].pDflt==0 ){
103021 pTab->aCol[i].zName);
103037 sqlite3ExprCode(pParse, pTab->aCol[i].pDflt, regNewData+1+i);
103228 VdbeComment((v, "%s", iField<0 ? "rowid" : pTab->aCol[iField].zName));
103283 pTab->aCol[pPk->aiColumn[i]].zName));
103712 Column *pDestCol = &pDest->aCol[i];
103713 Column *pSrcCol = &pSrc->aCol[i];
106851 for(i=0, pCol=pTab->aCol; i<pTab->nCol; i++, pCol++){
106929 cnum<0 ? 0 : pTab->aCol[cnum].zName);
107025 pTab->aCol[pFK->aCol[j].iFrom].zName,
107026 pFK->aCol[j].zCol,
107113 int iKey = pFK->aCol[0].iFrom;
107130 aiCols ? aiCols[j] : pFK->aCol[j].iFrom, regRow+j);
107313 if( pTab->aCol[j].notNull==0 ) continue;
107319 pTab->aCol[j].zName);
107360 if( iCol>=0 && pTab->aCol[iCol].notNull ) continue;
108910 if( sqlite3StrICmp(pTab->aCol[i].zName, zCol)==0 ) return i;
108929 int *piCol /* Write index of pSrc->a[*piTab].pTab->aCol[] here */
109080 zName = pRightTab->aCol[j].zName;
110074 zType = pTab->aCol[iCol].zType;
110075 zOrigCol = pTab->aCol[iCol].zName;
110076 estWidth = pTab->aCol[iCol].szEst;
110087 zType = pTab->aCol[iCol].zType;
110088 estWidth = pTab->aCol[iCol].szEst;
110212 zCol = pTab->aCol[iCol].zName;
110255 Column *aCol, *pCol; /* For looping over result columns */
110263 aCol = sqlite3DbMallocZero(db, sizeof(aCol[0])*nCol);
110264 testcase( aCol==0 );
110267 aCol = 0;
110270 *paCol = aCol;
110272 for(i=0, pCol=aCol; i<nCol; i++, pCol++){
110292 iCol>=0 ? pTab->aCol[iCol].zName : "rowid");
110311 if( sqlite3StrICmp(aCol[j].zName, zName)==0 ){
110328 sqlite3DbFree(db, aCol[j].zName);
110330 sqlite3DbFree(db, aCol);
110370 for(i=0, pCol=pTab->aCol; i<pTab->nCol; i++, pCol++){
110413 sqlite3ColumnsFromExprList(pParse, pSelect->pEList, &pTab->nCol, &pTab->aCol);
112772 sqlite3ColumnsFromExprList(pParse, pEList, &pTab->nCol, &pTab->aCol);
112887 sqlite3ColumnsFromExprList(pParse, pSel->pEList,&pTab->nCol,&pTab->aCol);
113008 char *zName = pTab->aCol[j].zName;
113024 if( IsHiddenColumn(&pTab->aCol[j]) ){
113253 assert( pAggInfo->aCol[i].iMem>=pAggInfo->mnReg
113254 && pAggInfo->aCol[i].iMem<=pAggInfo->mxReg );
113367 for(i=0, pC=pAggInfo->aCol; i<pAggInfo->nAccumulator; i++, pC++){
113940 if( sAggInfo.aCol[i].iSorterColumn>=j ){
113950 struct AggInfo_col *pCol = &sAggInfo.aCol[i];
114264 sqlite3DbFree(db, sAggInfo.aCol);
115665 Column *pCol = &pTab->aCol[i];
115674 if( pTab->aCol[i].affinity==SQLITE_AFF_REAL ){
115824 if( sqlite3StrICmp(pTab->aCol[j].zName, pChanges->a[i].zName)==0 ){
115828 }else if( pPk && (pTab->aCol[j].colFlags & COLFLAG_PRIMKEY)!=0 ){
115850 j<0 ? "ROWID" : pTab->aCol[j].zName,
116080 || (pTab->aCol[i].colFlags & COLFLAG_PRIMKEY)!=0
117352 char *zType = pTab->aCol[iCol].zType;
117380 pTab->aCol[iCol].colFlags |= COLFLAG_HIDDEN;
117547 if( !pTab->aCol ){
117548 pTab->aCol = pParse->pNewTable->aCol;
117551 pParse->pNewTable->aCol = 0;
118587 return pIdx->pTable->aCol[i].zName;
119479 && pIdx->pTable->aCol[j].notNull==0
121374 while( k<pTab->nCol && (pTab->aCol[k].colFlags & COLFLAG_HIDDEN)==0 ){ k++; }
121686 pScan->idxaff = pIdx->pTable->aCol[iColumn].affinity;
121794 return pIdx->pTable->aCol[j].notNull;
121980 aff = pSrc->pTab->aCol[pTerm->u.leftColumn].affinity;
122058 pTable->aCol[iCol].zName);
124689 && pIndex->pTable->aCol[iColumn].notNull==0
134078 pCol = &pTab->aCol[iCol];
134086 pCol = iCol>=0 ? &pTab->aCol[iCol] : 0;
137001 const char **aCol; /* Array of column names */
137027 aCol = (const char **)sqlite3_malloc(nByte);
137028 if( aCol ){
137029 memset((void*)aCol, 0, nByte);
137035 if( !aCol || !azNotindexed ){
137158 aCol[nCol++] = z;
137175 sqlite3_free((void*)aCol);
137176 aCol = 0;
137177 rc = fts3ContentColumns(db, argv[1], zContent,&aCol,&nCol,&nString,pzErr);
137180 ** column from the aCol[] array. */
137184 if( sqlite3_stricmp(zLanguageid, aCol[j])==0 ){
137186 for(k=j; k<nCol; k++) aCol[k] = aCol[k+1];
137198 aCol[0] = "content";
137269 z = (char *)sqlite3Fts3NextToken(aCol[iCol], &n);
137338 sqlite3_free((void *)aCol);
166730 static int sqlite3Fts5StorageDocsize(Fts5Storage *p, i64 iRowid, int *aCol);
181732 int *aCol, int nCol, /* Array to populate */
181739 iOff += fts5GetVarint32(&aBlob[iOff], aCol[i]);
181745 ** Argument aCol points to an array of integers containing one entry for
181747 ** specified rowid and populates aCol[] with the results.
181752 static int sqlite3Fts5StorageDocsize(Fts5Storage *p, i64 iRowid, int *aCol){
181765 if( 0==fts5StorageDecodeSizeArray(aCol, nCol, aBlob, nBlob) ){