Lines Matching refs:iPKey
481 assert( HasRowid(p) || p->iPKey<0 ); in sqlite3LocateTable()
1313 pTable->iPKey = -1; in sqlite3StartTable()
1881 sqlite3RenameTokenRemap(pParse, &pTab->iPKey, pCExpr); in sqlite3AddPrimaryKey()
1883 pTab->iPKey = iCol; in sqlite3AddPrimaryKey()
2210 if( pTab->iPKey<0 ) wTable++; in estimateTableWidth()
2369 if( pTab->iPKey>=0 ){ in convertToWithoutRowidTable()
2372 sqlite3TokenInit(&ipkToken, pTab->aCol[pTab->iPKey].zCnName); in convertToWithoutRowidTable()
2380 sqlite3RenameTokenRemap(pParse, pList->a[0].pExpr, &pTab->iPKey); in convertToWithoutRowidTable()
2384 pTab->iPKey = -1; in convertToWithoutRowidTable()
2684 && p->iPKey!=ii in sqlite3EndTable()
2694 || p->iPKey>=0 || sqlite3PrimaryKeyIndex(p)!=0 ); in sqlite3EndTable()
2696 || (p->iPKey<0 && sqlite3PrimaryKeyIndex(p)==0) ); in sqlite3EndTable()
2920 assert( HasRowid(p) || p->iPKey<0 ); in sqlite3EndTable()
4201 j = pTab->iPKey; in sqlite3CreateIndex()
4265 || pTab->iPKey<0 || sqlite3TableColumnToIndex(pIndex, pTab->iPKey)>=0 ); in sqlite3CreateIndex()
4270 if( j==pTab->iPKey ) continue; in sqlite3CreateIndex()
5379 if( pTab->iPKey>=0 ){ in sqlite3RowidConstraint()
5381 pTab->aCol[pTab->iPKey].zCnName); in sqlite3RowidConstraint()