Home | History | Annotate | Download | only in orig

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 */
73390 pExpr->iColumn = j==pTab->iPKey ? -1 : (i16)j;
73420 if( iCol==pTab->iPKey ){
73586 if( p->pTab->iPKey==iCol ){
76544 if( iCol<0 || iCol==pTab->iPKey ){
77127 assert( pTab->iPKey<0 || pExpr->iColumn!=pTab->iPKey );
81118 }else if( pTab->iPKey>=0 ){
81119 assert( pTab->iPKey<pTab->nCol );
81120 zCol = pTab->aCol[pTab->iPKey].zName;
82030 pTable->iPKey = -1;
82323 ** then we will try to use that column as the rowid. Set the Table.iPKey
82325 ** INTEGER PRIMARY KEY column. Table.iPKey is set to -1 if there is
82369 pTab->iPKey = iCol;
86103 if( idx==pTab->iPKey ){
87955 if( pParent->iPKey>=0 ){
87957 if( !sqlite3StrICmp(pParent->aCol[pParent->iPKey].zName, zKey) ) return 0;
88142 assert( aiCol[i]!=pTab->iPKey );
88143 if( pIdx->aiColumn[i]==pTab->iPKey ){
88257 if( pTab->iPKey==iCol ) iCol = -1;
88507 if( aiCol[i]==pTab->iPKey ){
88516 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zName;
88658 if( iChildKey==pTab->iPKey && chngRowid ) return 1;
88671 if( iKey==pTab->iPKey && chngRowid ) return 1;
89672 ** key in the original table is pTab->iPKey.)
89682 if( j==pTab->iPKey ){
89706 keyColumn = pTab->iPKey;
89895 if( i==pTab->iPKey ){
90134 if( i==pTab->iPKey ){
90287 if( idx==pTab->iPKey ){
90599 if( pDest->iPKey>=0 ) onError = pDest->keyConf;
90663 if( pDest->iPKey!=pSrc->iPKey ){
90723 if( (pDest->iPKey<0 && pDest->pIndex!=0) /* (1) */
90751 if( pDest->iPKey>=0 ){
95582 if( iCol<0 ) iCol = pTab->iPKey;
95709 if( iCol<0 ) iCol = pTab->iPKey;
95785 if( iCol<0 ) iCol = pTab->iPKey;
95902 pTab->iPKey = -1;
97748 pTab->iPKey = -1;
100641 if( j==pTab->iPKey ){
100870 if( i==pTab->iPKey ){
100913 if( aXRef[i]<0 && i!=pTab->iPKey ){
101069 assert( pTab->iPKey<0 );
104189 if( iColumn==pIdx->pTable->iPKey ){
115044 iCol = pTab->iPKey;
115076 autoinc = pTab->iPKey==iCol && (pTab->tabFlags & TF_Autoincrement)!=0;