Lines Matching defs:iPKey
10155 ** If the table has an INTEGER PRIMARY KEY, then Table.iPKey is the index of
10156 ** the column that is that key. Otherwise Table.iPKey is negative. Note
10176 int iPKey; /* If not negative, use aCol[iPKey] as the primary key */
10185 u8 keyConf; /* What to do in case of uniqueness conflict on iPKey */
73426 pExpr->iColumn = j==pTab->iPKey ? -1 : (i16)j;
73456 if( iCol==pTab->iPKey ){
73622 if( p->pTab->iPKey==iCol ){
76580 if( iCol<0 || iCol==pTab->iPKey ){
77163 assert( pTab->iPKey<0 || pExpr->iColumn!=pTab->iPKey );
81154 }else if( pTab->iPKey>=0 ){
81155 assert( pTab->iPKey<pTab->nCol );
81156 zCol = pTab->aCol[pTab->iPKey].zName;
82066 pTable->iPKey = -1;
82359 ** then we will try to use that column as the rowid. Set the Table.iPKey
82361 ** INTEGER PRIMARY KEY column. Table.iPKey is set to -1 if there is
82405 pTab->iPKey = iCol;
86139 if( idx==pTab->iPKey ){
87991 if( pParent->iPKey>=0 ){
87993 if( !sqlite3StrICmp(pParent->aCol[pParent->iPKey].zName, zKey) ) return 0;
88178 assert( aiCol[i]!=pTab->iPKey );
88179 if( pIdx->aiColumn[i]==pTab->iPKey ){
88293 if( pTab->iPKey==iCol ) iCol = -1;
88543 if( aiCol[i]==pTab->iPKey ){
88552 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zName;
88694 if( iChildKey==pTab->iPKey && chngRowid ) return 1;
88707 if( iKey==pTab->iPKey && chngRowid ) return 1;
89708 ** key in the original table is pTab->iPKey.)
89718 if( j==pTab->iPKey ){
89742 keyColumn = pTab->iPKey;
89931 if( i==pTab->iPKey ){
90170 if( i==pTab->iPKey ){
90323 if( idx==pTab->iPKey ){
90635 if( pDest->iPKey>=0 ) onError = pDest->keyConf;
90699 if( pDest->iPKey!=pSrc->iPKey ){
90759 if( (pDest->iPKey<0 && pDest->pIndex!=0) /* (1) */
90787 if( pDest->iPKey>=0 ){
95618 if( iCol<0 ) iCol = pTab->iPKey;
95745 if( iCol<0 ) iCol = pTab->iPKey;
95821 if( iCol<0 ) iCol = pTab->iPKey;
95938 pTab->iPKey = -1;
97784 pTab->iPKey = -1;
100677 if( j==pTab->iPKey ){
100906 if( i==pTab->iPKey ){
100949 if( aXRef[i]<0 && i!=pTab->iPKey ){
101105 assert( pTab->iPKey<0 );
104225 if( iColumn==pIdx->pTable->iPKey ){
115080 iCol = pTab->iPKey;
115112 autoinc = pTab->iPKey==iCol && (pTab->tabFlags & TF_Autoincrement)!=0;