Home
last modified time | relevance | path

Searched refs:iCol (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/lib/libsqlite/src/
H A Dselect.c671 int iCol = p->iColumn; in generateColumnTypes() local
675 if( iCol<0 ) iCol = pTab->iPKey; in generateColumnTypes()
676 assert( iCol==-1 || (iCol>=0 && iCol<pTab->nCol) ); in generateColumnTypes()
677 if( iCol<0 ){ in generateColumnTypes()
680 zType = pTab->aCol[iCol].zType; in generateColumnTypes()
726 int iCol = p->iColumn; in generateColumnNames() local
730 if( iCol<0 ) iCol = pTab->iPKey; in generateColumnNames()
731 assert( iCol==-1 || (iCol>=0 && iCol<pTab->nCol) ); in generateColumnNames()
732 if( iCol<0 ){ in generateColumnNames()
735 zCol = pTab->aCol[iCol].zName; in generateColumnNames()
[all …]
H A Dbuild.c683 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()
[all …]