Home | History | Annotate | Download | only in orig

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 */
71373 if( sqlite3StrICmp(pTab->aCol[iCol].zName, zColumn)==0 ){
71402 if( pFKey->aCol[j].iFrom==iCol ){
73374 for(j=0, pCol=pTab->aCol; j<pTab->nCol; j++, pCol++){
73418 Column *pCol = &pTab->aCol[iCol];
74444 return pExpr->pTab->aCol[j].affinity;
74500 zColl = p->pTab->aCol[j].zColl;
75896 int affinity_ok = (pTab->aCol[iCol].affinity==aff||aff==SQLITE_AFF_NONE);
75915 if( prNotFound && !pTab->aCol[iCol].notNull ){
76693 struct AggInfo_col *pCol = &pAggInfo->aCol[pExpr->iAgg];
77133 (pExpr->iColumn<0 ? "rowid" : pExpr->pTab->aCol[pExpr->iColumn].zName),
77141 && pTab->aCol[pExpr->iColumn].affinity==SQLITE_AFF_REAL
78162 ** Add a new element to the pAggInfo->aCol[] array. Return the index of
78167 pInfo->aCol = sqlite3ArrayAllocate(
78169 pInfo->aCol,
78170 sizeof(pInfo->aCol[0]),
78221 ** Make an entry for the column in pAggInfo->aCol[] if there
78225 pCol = pAggInfo->aCol;
78235 pCol = &pAggInfo->aCol[k];
78260 /* There is now an entry for pExpr in pAggInfo->aCol[] (either
78263 ** pAggInfo->aCol[] entry.
79074 pCol = &pNew->aCol[pNew->nCol-1];
79228 pNew->aCol = (Column*)sqlite3DbMallocZero(db, sizeof(Column)*nAlloc);
79230 if( !pNew->aCol || !pNew->zName ){
79234 memcpy(pNew->aCol, pTab->aCol, sizeof(Column)*pNew->nCol);
79236 Column *pCol = &pNew->aCol[i];
81117 zCol = pTab->aCol[iCol].zName;
81120 zCol = pTab->aCol[pTab->iPKey].zName;
81675 ** Table.aCol[] array).
81681 if( (pCol = pTable->aCol)!=0 ){
81689 sqlite3DbFree(db, pTable->aCol);
82156 if( STRICMP(z, p->aCol[i].zName) ){
82164 aNew = sqlite3DbRealloc(db,p->aCol,(p->nCol+8)*sizeof(p->aCol[0]));
82169 p->aCol = aNew;
82171 pCol = &p->aCol[p->nCol];
82172 memset(pCol, 0, sizeof(p->aCol[0]));
82193 p->aCol[p->nCol-1].notNull = (u8)onError;
82272 pCol = &p->aCol[p->nCol-1];
82294 pCol = &(p->aCol[p->nCol-1]);
82350 pTab->aCol[iCol].isPrimKey = 1;
82354 if( sqlite3StrICmp(pList->a[i].zName, pTab->aCol[iCol].zName)==0 ){
82359 pTab->aCol[iCol].isPrimKey = 1;
82365 zType = pTab->aCol[iCol].zType;
82429 p->aCol[i].zColl = zColl;
82438 pIdx->azColl[0] = p->aCol[i].zColl;
82573 for(pCol = p->aCol, i=0; i<p->nCol; i++, pCol++){
82596 for(pCol=p->aCol, i=0; i<p->nCol; i++, pCol++){
82763 assert( p->aCol==0 );
82765 p->aCol = pSelTab->aCol;
82767 pSelTab->aCol = 0;
83006 assert( pTable->aCol==0 );
83008 pTable->aCol = pSelTab->aCol;
83010 pSelTab->aCol = 0;
83039 pTab->aCol = 0;
83416 p->aCol[iCol].zName, pTo);
83428 aCol[0]) + pTo->n + 1;
83440 z = (char*)&pFKey->aCol[nCol];
83448 pFKey->aCol[0].iFrom = p->nCol-1;
83453 if( sqlite3StrICmp(p->aCol[j].zName, pFromCol->a[i].zName)==0 ){
83454 pFKey->aCol[i].iFrom = j;
83469 pFKey->aCol[i].zCol = z;
83830 nullId.z = pTab->aCol[pTab->nCol-1].zName;
83912 for(j=0, pTabCol=pTab->aCol; j<pTab->nCol; j++, pTabCol++){
83937 zColl = pTab->aCol[j].zColl;
87932 char *zKey = pFKey->aCol[0].zCol; /* Name of left-most parent key column */
87957 if( !sqlite3StrICmp(pParent->aCol[pParent->iPKey].zName, zKey) ) return 0;
87979 for(i=0; i<nCol; i++) aiCol[i] = pFKey->aCol[i].iFrom;
87997 zDfltColl = pParent->aCol[iCol].zColl;
88003 zIdxCol = pParent->aCol[iCol].zName;
88005 if( sqlite3StrICmp(pFKey->aCol[j].zCol, zIdxCol)==0 ){
88006 if( aiCol ) aiCol[i] = pFKey->aCol[j].iFrom;
88256 pCol = &pTab->aCol[iCol];
88266 iCol = aiCol ? aiCol[i] : pFKey->aCol[0].iFrom;
88268 zCol = pFKey->pFrom->aCol[iCol].zName;
88491 int iReg = pFKey->aCol[i].iFrom + regOld + 1;
88503 iCol = pFKey->aCol[0].iFrom;
88516 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zName;
88608 for(i=0; i<p->nCol; i++) mask |= COLUMN_MASK(p->aCol[i].iFrom);
88656 int iChildKey = p->aCol[i].iFrom;
88665 char *zKey = p->aCol[i].zCol;
88668 Column *pCol = &pTab->aCol[iKey];
88748 iFromCol = aiCol ? aiCol[i] : pFKey->aCol[0].iFrom;
88750 tToCol.z = pIdx ? pTab->aCol[pIdx->aiColumn[i]].zName : "oid";
88751 tFromCol.z = pFKey->pFrom->aCol[iFromCol].zName;
88796 Expr *pDflt = pFKey->pFrom->aCol[iFromCol].pDflt;
89038 pIdx->zColAff[n] = pTab->aCol[pIdx->aiColumn[n]].affinity;
89081 zColAff[i] = pTab->aCol[i].affinity;
89649 nHidden += (IsHiddenColumn(&pTab->aCol[i]) ? 1 : 0);
89680 if( sqlite3StrICmp(pColumn->a[i].zName, pTab->aCol[j].zName)==0 ){
89813 sqlite3ExprCode(pParse, pTab->aCol[i].pDflt, regCols+i+1);
89904 if( IsHiddenColumn(&pTab->aCol[i]) ){
89917 sqlite3ExprCode(pParse, pTab->aCol[i].pDflt, iRegStore);
90137 onError = pTab->aCol[i].notNull;
90144 if( onError==OE_Replace && pTab->aCol[i].pDflt==0 ){
90158 pTab->zName, pTab->aCol[i].zName);
90169 sqlite3ExprCode(pParse, pTab->aCol[i].pDflt, regData+i);
90338 char *zCol = pTab->aCol[pIdx->aiColumn[j]].zName;
90667 if( pDest->aCol[i].affinity!=pSrc->aCol[i].affinity ){
90670 if( !xferCompatibleCollation(pDest->aCol[i].zColl, pSrc->aCol[i].zColl) ){
90673 if( pDest->aCol[i].notNull && !pSrc->aCol[i].notNull ){
92981 for(i=0, pCol=pTab->aCol; i<pTab->nCol; i++, pCol++){
93020 sqlite3VdbeAddOp4(v, OP_String8, 0, 3, 0, pTab->aCol[cnum].zName, 0);
93112 char *zCol = pFK->aCol[j].zCol;
93119 pTab->aCol[pFK->aCol[j].iFrom].zName, 0);
94693 if( sqlite3StrICmp(pTab->aCol[i].zName, zCol)==0 ) return i;
94712 int *piCol /* Write index of pSrc->a[*piTab].pTab->aCol[] here */
94857 zName = pRightTab->aCol[j].zName;
95588 zType = pTab->aCol[iCol].zType;
95589 zOriginCol = pTab->aCol[iCol].zName;
95714 zCol = pTab->aCol[iCol].zName;
95756 Column *aCol, *pCol; /* For looping over result columns */
95763 aCol = *paCol = sqlite3DbMallocZero(db, sizeof(aCol[0])*nCol);
95764 if( aCol==0 ) return SQLITE_NOMEM;
95765 for(i=0, pCol=aCol; i<nCol; i++, pCol++){
95787 iCol>=0 ? pTab->aCol[iCol].zName : "rowid");
95806 if( sqlite3StrICmp(aCol[j].zName, zName)==0 ){
95820 sqlite3DbFree(db, aCol[j].zName);
95822 sqlite3DbFree(db, aCol);
95844 Column *aCol, /* List of columns */
95862 for(i=0, pCol=aCol; i<nCol; i++, pCol++){
95900 selectColumnsFromExprList(pParse, pSelect->pEList, &pTab->nCol, &pTab->aCol);
95901 selectAddColumnTypeAndCollation(pParse, pTab->nCol, pTab->aCol, pSelect);
97747 selectColumnsFromExprList(pParse, pSel->pEList, &pTab->nCol, &pTab->aCol);
97850 char *zName = pTab->aCol[j].zName;
97859 if( IsHiddenColumn(&pTab->aCol[j]) ){
97987 selectAddColumnTypeAndCollation(pParse, pTab->nCol, pTab->aCol, pSel);
98057 sqlite3VdbeAddOp2(v, OP_Null, 0, pAggInfo->aCol[i].iMem);
98165 for(i=0, pC=pAggInfo->aCol; i<pAggInfo->nAccumulator; i++, pC++){
98715 if( sAggInfo.aCol[i].iSorterColumn>=j ){
98726 struct AggInfo_col *pCol = &sAggInfo.aCol[i];
99014 sqlite3DbFree(db, sAggInfo.aCol);
100506 Column *pCol = &pTab->aCol[i];
100515 if( iReg>=0 && pTab->aCol[i].affinity==SQLITE_AFF_REAL ){
100640 if( sqlite3StrICmp(pTab->aCol[j].zName, pChanges->a[i].zName)==0 ){
100663 pTab->aCol[j].zName, db->aDb[iDb].zName);
101074 pExpr = sqlite3Expr(db, TK_ID, pTab->aCol[i].zName);
101972 char *zType = pTab->aCol[iCol].zType;
101997 pTab->aCol[iCol].isHidden = 1;
102154 if( !pTab->aCol ){
102155 pTab->aCol = pParse->pNewTable->aCol;
102158 pParse->pNewTable->aCol = 0;
103146 idxaff = pIdx->pTable->aCol[iColumn].affinity;
104441 aff = pSrc->pTab->aCol[pTerm->u.leftColumn].affinity;
105220 int nEq, /* index into p->aCol[] of the range-compared column */
105234 u8 aff = p->pTable->aCol[p->aiColumn[0]].affinity;
105314 aff = p->pTable->aCol[p->aiColumn[0]].affinity;
106217 Column *aCol = pTab->aCol;
106228 explainAppendTerm(&txt, i, aCol[aiColumn[i]].zName, "=");
106233 char *z = (j==pIndex->nColumn ) ? "rowid" : aCol[aiColumn[j]].zName;
106237 char *z = (j==pIndex->nColumn ) ? "rowid" : aCol[aiColumn[j]].zName;
115046 pCol = &pTab->aCol[iCol];
115050 pCol = &pTab->aCol[iCol];
117695 const char **aCol; /* Array of column names */
117718 aCol = (const char **)sqlite3_malloc(sizeof(const char *) * (argc-2) );
117719 if( !aCol ) return SQLITE_NOMEM;
117720 memset((void *)aCol, 0, sizeof(const char *) * (argc-2));
117834 aCol[nCol++] = z;
117851 sqlite3_free((void*)aCol);
117852 aCol = 0;
117853 rc = fts3ContentColumns(db, argv[1], zContent, &aCol, &nCol, &nString);
117856 ** column from the aCol[] array. */
117860 if( sqlite3_stricmp(zLanguageid, aCol[j])==0 ){
117862 for(k=j; k<nCol; k++) aCol[k] = aCol[k+1];
117874 aCol[0] = "content";
117941 z = (char *)sqlite3Fts3NextToken(aCol[iCol], &n);
117981 sqlite3_free((void *)aCol);