Lines Matching defs:aCol
10152 ** Table.nCol is the number of columns in this table. Table.aCol is a
10176 int iPKey; /* If not negative, use aCol[iPKey] as the primary key */
10178 Column *aCol; /* Information about each column */
10260 } aCol[1]; /* One entry for each of nCol column s */
10360 ** first column to be indexed (c3) has an index of 2 in Ex1.aCol[].
10362 ** Ex1.aCol[], hence Ex2.aiColumn[1]==0.
10430 ** AggInfo.aCol[] or AggInfo.aFunc[] of information needed to generate
10453 } *aCol;
10454 int nColumn; /* Number of used entries in aCol[] */
10578 i16 iAgg; /* Which entry in pAggInfo->aCol[] or ->aFunc[] */
10702 int idx; /* Index in some Table.aCol[] of a column named zName */
71401 if( sqlite3StrICmp(pTab->aCol[iCol].zName, zColumn)==0 ){
71430 if( pFKey->aCol[j].iFrom==iCol ){
73410 for(j=0, pCol=pTab->aCol; j<pTab->nCol; j++, pCol++){
73454 Column *pCol = &pTab->aCol[iCol];
74480 return pExpr->pTab->aCol[j].affinity;
74536 zColl = p->pTab->aCol[j].zColl;
75932 int affinity_ok = (pTab->aCol[iCol].affinity==aff||aff==SQLITE_AFF_NONE);
75951 if( prNotFound && !pTab->aCol[iCol].notNull ){
76729 struct AggInfo_col *pCol = &pAggInfo->aCol[pExpr->iAgg];
77169 (pExpr->iColumn<0 ? "rowid" : pExpr->pTab->aCol[pExpr->iColumn].zName),
77177 && pTab->aCol[pExpr->iColumn].affinity==SQLITE_AFF_REAL
78198 ** Add a new element to the pAggInfo->aCol[] array. Return the index of
78203 pInfo->aCol = sqlite3ArrayAllocate(
78205 pInfo->aCol,
78206 sizeof(pInfo->aCol[0]),
78257 ** Make an entry for the column in pAggInfo->aCol[] if there
78261 pCol = pAggInfo->aCol;
78271 pCol = &pAggInfo->aCol[k];
78296 /* There is now an entry for pExpr in pAggInfo->aCol[] (either
78299 ** pAggInfo->aCol[] entry.
79110 pCol = &pNew->aCol[pNew->nCol-1];
79264 pNew->aCol = (Column*)sqlite3DbMallocZero(db, sizeof(Column)*nAlloc);
79266 if( !pNew->aCol || !pNew->zName ){
79270 memcpy(pNew->aCol, pTab->aCol, sizeof(Column)*pNew->nCol);
79272 Column *pCol = &pNew->aCol[i];
81153 zCol = pTab->aCol[iCol].zName;
81156 zCol = pTab->aCol[pTab->iPKey].zName;
81711 ** Table.aCol[] array).
81717 if( (pCol = pTable->aCol)!=0 ){
81725 sqlite3DbFree(db, pTable->aCol);
82192 if( STRICMP(z, p->aCol[i].zName) ){
82200 aNew = sqlite3DbRealloc(db,p->aCol,(p->nCol+8)*sizeof(p->aCol[0]));
82205 p->aCol = aNew;
82207 pCol = &p->aCol[p->nCol];
82208 memset(pCol, 0, sizeof(p->aCol[0]));
82229 p->aCol[p->nCol-1].notNull = (u8)onError;
82308 pCol = &p->aCol[p->nCol-1];
82330 pCol = &(p->aCol[p->nCol-1]);
82386 pTab->aCol[iCol].isPrimKey = 1;
82390 if( sqlite3StrICmp(pList->a[i].zName, pTab->aCol[iCol].zName)==0 ){
82395 pTab->aCol[iCol].isPrimKey = 1;
82401 zType = pTab->aCol[iCol].zType;
82465 p->aCol[i].zColl = zColl;
82474 pIdx->azColl[0] = p->aCol[i].zColl;
82609 for(pCol = p->aCol, i=0; i<p->nCol; i++, pCol++){
82632 for(pCol=p->aCol, i=0; i<p->nCol; i++, pCol++){
82799 assert( p->aCol==0 );
82801 p->aCol = pSelTab->aCol;
82803 pSelTab->aCol = 0;
83042 assert( pTable->aCol==0 );
83044 pTable->aCol = pSelTab->aCol;
83046 pSelTab->aCol = 0;
83075 pTab->aCol = 0;
83452 p->aCol[iCol].zName, pTo);
83464 nByte = sizeof(*pFKey) + (nCol-1)*sizeof(pFKey->aCol[0]) + pTo->n + 1;
83476 z = (char*)&pFKey->aCol[nCol];
83484 pFKey->aCol[0].iFrom = p->nCol-1;
83489 if( sqlite3StrICmp(p->aCol[j].zName, pFromCol->a[i].zName)==0 ){
83490 pFKey->aCol[i].iFrom = j;
83505 pFKey->aCol[i].zCol = z;
83866 nullId.z = pTab->aCol[pTab->nCol-1].zName;
83948 for(j=0, pTabCol=pTab->aCol; j<pTab->nCol; j++, pTabCol++){
83973 zColl = pTab->aCol[j].zColl;
87968 char *zKey = pFKey->aCol[0].zCol; /* Name of left-most parent key column */
87993 if( !sqlite3StrICmp(pParent->aCol[pParent->iPKey].zName, zKey) ) return 0;
88015 for(i=0; i<nCol; i++) aiCol[i] = pFKey->aCol[i].iFrom;
88033 zDfltColl = pParent->aCol[iCol].zColl;
88039 zIdxCol = pParent->aCol[iCol].zName;
88041 if( sqlite3StrICmp(pFKey->aCol[j].zCol, zIdxCol)==0 ){
88042 if( aiCol ) aiCol[i] = pFKey->aCol[j].iFrom;
88292 pCol = &pTab->aCol[iCol];
88302 iCol = aiCol ? aiCol[i] : pFKey->aCol[0].iFrom;
88304 zCol = pFKey->pFrom->aCol[iCol].zName;
88527 int iReg = pFKey->aCol[i].iFrom + regOld + 1;
88539 iCol = pFKey->aCol[0].iFrom;
88552 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zName;
88644 for(i=0; i<p->nCol; i++) mask |= COLUMN_MASK(p->aCol[i].iFrom);
88692 int iChildKey = p->aCol[i].iFrom;
88701 char *zKey = p->aCol[i].zCol;
88704 Column *pCol = &pTab->aCol[iKey];
88784 iFromCol = aiCol ? aiCol[i] : pFKey->aCol[0].iFrom;
88786 tToCol.z = pIdx ? pTab->aCol[pIdx->aiColumn[i]].zName : "oid";
88787 tFromCol.z = pFKey->pFrom->aCol[iFromCol].zName;
88832 Expr *pDflt = pFKey->pFrom->aCol[iFromCol].pDflt;
89074 pIdx->zColAff[n] = pTab->aCol[pIdx->aiColumn[n]].affinity;
89117 zColAff[i] = pTab->aCol[i].affinity;
89685 nHidden += (IsHiddenColumn(&pTab->aCol[i]) ? 1 : 0);
89716 if( sqlite3StrICmp(pColumn->a[i].zName, pTab->aCol[j].zName)==0 ){
89849 sqlite3ExprCode(pParse, pTab->aCol[i].pDflt, regCols+i+1);
89940 if( IsHiddenColumn(&pTab->aCol[i]) ){
89953 sqlite3ExprCode(pParse, pTab->aCol[i].pDflt, iRegStore);
90173 onError = pTab->aCol[i].notNull;
90180 if( onError==OE_Replace && pTab->aCol[i].pDflt==0 ){
90194 pTab->zName, pTab->aCol[i].zName);
90205 sqlite3ExprCode(pParse, pTab->aCol[i].pDflt, regData+i);
90374 char *zCol = pTab->aCol[pIdx->aiColumn[j]].zName;
90703 if( pDest->aCol[i].affinity!=pSrc->aCol[i].affinity ){
90706 if( !xferCompatibleCollation(pDest->aCol[i].zColl, pSrc->aCol[i].zColl) ){
90709 if( pDest->aCol[i].notNull && !pSrc->aCol[i].notNull ){
93017 for(i=0, pCol=pTab->aCol; i<pTab->nCol; i++, pCol++){
93056 sqlite3VdbeAddOp4(v, OP_String8, 0, 3, 0, pTab->aCol[cnum].zName, 0);
93148 char *zCol = pFK->aCol[j].zCol;
93155 pTab->aCol[pFK->aCol[j].iFrom].zName, 0);
94729 if( sqlite3StrICmp(pTab->aCol[i].zName, zCol)==0 ) return i;
94748 int *piCol /* Write index of pSrc->a[*piTab].pTab->aCol[] here */
94893 zName = pRightTab->aCol[j].zName;
95624 zType = pTab->aCol[iCol].zType;
95625 zOriginCol = pTab->aCol[iCol].zName;
95750 zCol = pTab->aCol[iCol].zName;
95792 Column *aCol, *pCol; /* For looping over result columns */
95799 aCol = *paCol = sqlite3DbMallocZero(db, sizeof(aCol[0])*nCol);
95800 if( aCol==0 ) return SQLITE_NOMEM;
95801 for(i=0, pCol=aCol; i<nCol; i++, pCol++){
95823 iCol>=0 ? pTab->aCol[iCol].zName : "rowid");
95842 if( sqlite3StrICmp(aCol[j].zName, zName)==0 ){
95856 sqlite3DbFree(db, aCol[j].zName);
95858 sqlite3DbFree(db, aCol);
95880 Column *aCol, /* List of columns */
95898 for(i=0, pCol=aCol; i<nCol; i++, pCol++){
95936 selectColumnsFromExprList(pParse, pSelect->pEList, &pTab->nCol, &pTab->aCol);
95937 selectAddColumnTypeAndCollation(pParse, pTab->nCol, pTab->aCol, pSelect);
97783 selectColumnsFromExprList(pParse, pSel->pEList, &pTab->nCol, &pTab->aCol);
97886 char *zName = pTab->aCol[j].zName;
97895 if( IsHiddenColumn(&pTab->aCol[j]) ){
98023 selectAddColumnTypeAndCollation(pParse, pTab->nCol, pTab->aCol, pSel);
98093 sqlite3VdbeAddOp2(v, OP_Null, 0, pAggInfo->aCol[i].iMem);
98201 for(i=0, pC=pAggInfo->aCol; i<pAggInfo->nAccumulator; i++, pC++){
98751 if( sAggInfo.aCol[i].iSorterColumn>=j ){
98762 struct AggInfo_col *pCol = &sAggInfo.aCol[i];
99050 sqlite3DbFree(db, sAggInfo.aCol);
100542 Column *pCol = &pTab->aCol[i];
100551 if( iReg>=0 && pTab->aCol[i].affinity==SQLITE_AFF_REAL ){
100676 if( sqlite3StrICmp(pTab->aCol[j].zName, pChanges->a[i].zName)==0 ){
100699 pTab->aCol[j].zName, db->aDb[iDb].zName);
101110 pExpr = sqlite3Expr(db, TK_ID, pTab->aCol[i].zName);
102008 char *zType = pTab->aCol[iCol].zType;
102033 pTab->aCol[iCol].isHidden = 1;
102190 if( !pTab->aCol ){
102191 pTab->aCol = pParse->pNewTable->aCol;
102194 pParse->pNewTable->aCol = 0;
103182 idxaff = pIdx->pTable->aCol[iColumn].affinity;
104477 aff = pSrc->pTab->aCol[pTerm->u.leftColumn].affinity;
105256 int nEq, /* index into p->aCol[] of the range-compared column */
105270 u8 aff = p->pTable->aCol[p->aiColumn[0]].affinity;
105350 aff = p->pTable->aCol[p->aiColumn[0]].affinity;
106253 Column *aCol = pTab->aCol;
106264 explainAppendTerm(&txt, i, aCol[aiColumn[i]].zName, "=");
106269 char *z = (j==pIndex->nColumn ) ? "rowid" : aCol[aiColumn[j]].zName;
106273 aCol[aiColumn[j]].zName;
115082 pCol = &pTab->aCol[iCol];
115086 pCol = &pTab->aCol[iCol];
117731 const char **aCol; /* Array of column names */
117754 aCol = (const char **)sqlite3_malloc(sizeof(const char *) * (argc-2) );
117755 if( !aCol ) return SQLITE_NOMEM;
117756 memset((void *)aCol, 0, sizeof(const char *) * (argc-2));
117870 aCol[nCol++] = z;
117887 sqlite3_free((void*)aCol);
117888 aCol = 0;
117889 rc = fts3ContentColumns(db, argv[1], zContent, &aCol, &nCol, &nString);
117892 ** column from the aCol[] array. */
117896 if( sqlite3_stricmp(zLanguageid, aCol[j])==0 ){
117898 for(k=j; k<nCol; k++) aCol[k] = aCol[k+1];
117910 aCol[0] = "content";
117977 z = (char *)sqlite3Fts3NextToken(aCol[iCol], &n);
118017 sqlite3_free((void *)aCol);