Home | History | Annotate | Download | only in orig

Lines Matching refs:iPKey

15776   i16 iPKey;           /* If not negative, use aCol[iPKey] as the rowid */
15783 u8 keyConf; /* What to do in case of uniqueness conflict on iPKey */
79503 if( iIdx==p->pTab->iPKey ){
79586 if( iIdx==p->pTab->iPKey ){
79608 if( iIdx==p->pTab->iPKey ){
91435 pExpr->iColumn = j==pTab->iPKey ? -1 : (i16)j;
91475 if( iCol==pTab->iPKey ){
91665 if( p->pTab->iPKey==iCol ){
95993 if( iCol<0 || iCol==pTab->iPKey ){
96672 assert( pTab->iPKey<0 || pExpr->iColumn!=pTab->iPKey );
99870 pStat1->iPKey = -1;
101523 }else if( pTab->iPKey>=0 ){
101524 assert( pTab->iPKey<pTab->nCol );
101525 zCol = pTab->aCol[pTab->iPKey].zName;
102560 pTable->iPKey = -1;
102909 ** then we will try to use that column as the rowid. Set the Table.iPKey
102911 ** INTEGER PRIMARY KEY column. Table.iPKey is set to -1 if there is
102963 pTab->iPKey = iCol;
103262 if( pTab->iPKey<0 ) wTable++;
103345 if( pTab->iPKey>=0 ){
103348 sqlite3TokenInit(&ipkToken, pTab->aCol[pTab->iPKey].zName);
103358 pTab->iPKey = -1;
104802 j = pTab->iPKey;
104858 || pTab->iPKey<0 || sqlite3ColumnOfIndex(pIndex, pTab->iPKey)>=0 );
104862 if( j==pTab->iPKey ) continue;
105822 if( pTab->iPKey>=0 ){
105824 pTab->aCol[pTab->iPKey].zName);
109629 if( pParent->iPKey>=0 ){
109631 if( !sqlite3StrICmp(pParent->aCol[pParent->iPKey].zName, zKey) ) return 0;
109821 assert( aiCol[i]!=pTab->iPKey );
109822 if( pIdx->aiColumn[i]==pTab->iPKey ){
109885 if( iCol>=0 && iCol!=pTab->iPKey ){
110189 if( iChildKey==pTab->iPKey && bChngRowid ) return 1;
110217 if( aChange[iKey]>=0 || (iKey==pTab->iPKey && bChngRowid) ){
110348 if( aiCol[i]==pTab->iPKey ){
110358 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zName;
110625 assert( pIdx!=0 || (pTab->iPKey>=0 && pTab->iPKey<pTab->nCol) );
110628 pTab->aCol[pIdx ? pIdx->aiColumn[i] : pTab->iPKey].zName);
111470 ** PRIMARY KEY in the original table is pTab->iPKey.)
111482 if( j==pTab->iPKey ){
111593 ipkColumn = pTab->iPKey;
111787 if( i==pTab->iPKey ){
112116 if( i==pTab->iPKey ){
112355 if( iField==XN_ROWID || iField==pTab->iPKey ){
112825 if( pDest->iPKey>=0 ) onError = pDest->keyConf;
112891 if( pDest->iPKey!=pSrc->iPKey ){
112975 (pDest->iPKey<0 && pDest->pIndex!=0) /* (1) */
113004 if( pDest->iPKey>=0 ){
116864 if( j==pTab->iPKey ) continue;
120135 if( iCol<0 ) iCol = pTab->iPKey;
120308 if( iCol<0 ) iCol = pTab->iPKey;
120399 if( iCol<0 ) iCol = pTab->iPKey;
120531 pTab->iPKey = -1;
122873 pTab->iPKey = -1;
123061 pTab->iPKey = -1;
126321 if( j==pTab->iPKey ){
126645 if( i==pTab->iPKey ){
126694 if( aXRef[i]<0 && i!=pTab->iPKey ){
128516 pTab->iPKey = -1;
133236 }else if( iColumn==pIdx->pTable->iPKey ){
136608 if( iColumn==pIndex->pTable->iPKey ) iColumn = XN_ROWID;
146828 iCol = pTab->iPKey;
146852 autoinc = pTab->iPKey==iCol && (pTab->tabFlags & TF_Autoincrement)!=0;