Lines Matching refs:iCol
683 int iCol = -1, i; in sqliteAddPrimaryKey() local
692 iCol = pTab->nCol - 1; in sqliteAddPrimaryKey()
693 pTab->aCol[iCol].isPrimKey = 1; in sqliteAddPrimaryKey()
696 for(iCol=0; iCol<pTab->nCol; iCol++){ in sqliteAddPrimaryKey()
697 if( sqliteStrICmp(pList->a[i].zName, pTab->aCol[iCol].zName)==0 ) break; in sqliteAddPrimaryKey()
699 if( iCol<pTab->nCol ) pTab->aCol[iCol].isPrimKey = 1; in sqliteAddPrimaryKey()
701 if( pList->nId>1 ) iCol = -1; in sqliteAddPrimaryKey()
703 if( iCol>=0 && iCol<pTab->nCol ){ in sqliteAddPrimaryKey()
704 zType = pTab->aCol[iCol].zType; in sqliteAddPrimaryKey()
708 pTab->iPKey = iCol; in sqliteAddPrimaryKey()
1318 int iCol = pIdx->aiColumn[i]; in sqliteAddIdxKeyType() local
1319 assert( iCol>=0 && iCol<pTab->nCol ); in sqliteAddIdxKeyType()
1320 if( (pTab->aCol[iCol].sortOrder & SQLITE_SO_TYPEMASK)==SQLITE_SO_TEXT ){ in sqliteAddIdxKeyType()
1366 int iCol = p->nCol-1; in sqliteCreateForeignKey() local
1367 if( iCol<0 ) goto fk_end; in sqliteCreateForeignKey()
1371 p->aCol[iCol].zName, pTo); in sqliteCreateForeignKey()
1720 int iCol = pIndex->aiColumn[i]; in sqliteCreateIndex() local
1721 if( pTab->iPKey==iCol ){ in sqliteCreateIndex()
1724 sqliteVdbeAddOp(v, OP_Column, 2, iCol); in sqliteCreateIndex()