Lines Matching refs:iPKey
18401 i16 iPKey; /* If not negative, use aCol[iPKey] as the rowid */ member
92581 if( iIdx==p->pTab->iPKey ){
92698 if( iIdx==p->pTab->iPKey ){
92720 if( iIdx==p->pTab->iPKey ){
107188 pExpr->iColumn = j==pTab->iPKey ? -1 : (i16)j;
107289 if( iCol==pTab->iPKey ){
107600 if( p->y.pTab->iPKey==iCol ){
113178 if( iCol<0 || iCol==pTab->iPKey ){
114152 assert( pTab->iPKey<0 || iCol!=pTab->iPKey );
117670 sCtx.iCol = ((iCol==pTab->iPKey) ? -1 : iCol);
117709 renameTokenFind(&sParse, &sCtx, (void*)&sParse.pNewTable->iPKey);
118404 if( i==pTab->iPKey ){
119498 pStat1->iPKey = -1;
121275 }else if( pTab->iPKey>=0 ){
121276 assert( pTab->iPKey<pTab->nCol );
121277 zCol = pTab->aCol[pTab->iPKey].zCnName;
121846 assert( HasRowid(p) || p->iPKey<0 );
122681 pTable->iPKey = -1;
123246 sqlite3RenameTokenRemap(pParse, &pTab->iPKey, pCExpr);
123248 pTab->iPKey = iCol;
123586 if( pTab->iPKey<0 ) wTable++;
123745 if( pTab->iPKey>=0 ){
123748 sqlite3TokenInit(&ipkToken, pTab->aCol[pTab->iPKey].zCnName);
123756 sqlite3RenameTokenRemap(pParse, pList->a[0].pExpr, &pTab->iPKey);
123760 pTab->iPKey = -1;
124061 && p->iPKey!=ii
124071 || p->iPKey>=0 || sqlite3PrimaryKeyIndex(p)!=0 );
124073 || (p->iPKey<0 && sqlite3PrimaryKeyIndex(p)==0) );
124305 assert( HasRowid(p) || p->iPKey<0 );
125589 j = pTab->iPKey;
125653 || pTab->iPKey<0 || sqlite3TableColumnToIndex(pIndex, pTab->iPKey)>=0 );
125658 if( j==pTab->iPKey ) continue;
126767 if( pTab->iPKey>=0 ){
126769 pTab->aCol[pTab->iPKey].zCnName);
131624 if( pParent->iPKey>=0 ){
131626 if( !sqlite3StrICmp(pParent->aCol[pParent->iPKey].zCnName, zKey) ){
131829 assert( aiCol[i]!=pTab->iPKey );
131830 if( pIdx->aiColumn[i]==pTab->iPKey ){
131892 if( iCol>=0 && iCol!=pTab->iPKey ){
132216 if( iChildKey==pTab->iPKey && bChngRowid ) return 1;
132244 if( aChange[iKey]>=0 || (iKey==pTab->iPKey && bChngRowid) ){
132379 if( aiCol[i]==pTab->iPKey ){
132389 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zCnName;
132666 assert( pIdx!=0 || (pTab->iPKey>=0 && pTab->iPKey<pTab->nCol) );
132669 pTab->aCol[pIdx ? pIdx->aiColumn[i] : pTab->iPKey].zCnName);
133963 if( j==pTab->iPKey ){
134099 ipkColumn = pTab->iPKey;
134243 if( i==pTab->iPKey ){
134845 if( i==pTab->iPKey ){
135309 }else if( iField==XN_ROWID || iField==pTab->iPKey ){
135921 if( pDest->iPKey>=0 ) onError = pDest->keyConf;
135983 if( pDest->iPKey!=pSrc->iPKey ){
136122 (pDest->iPKey<0 && pDest->pIndex!=0) /* (1) */
136151 if( pDest->iPKey>=0 ){
140579 if( mxCol==pTab->iPKey ) mxCol--;
140629 if( j==pTab->iPKey ) continue;
144870 if( iCol<0 ) iCol = pTab->iPKey;
145039 if( iCol<0 ) iCol = pTab->iPKey;
145134 if( iCol<0 ) iCol = pTab->iPKey;
145317 pTab->iPKey = -1;
148652 pTab->iPKey = -1;
148796 pTab->iPKey = -1;
153751 if( j==pTab->iPKey ){
154221 if( i==pTab->iPKey ){
154293 }else if( aXRef[i]<0 && i!=pTab->iPKey ){
156665 pTab->iPKey = -1;
157593 const char *zRowid = pTab->iPKey>=0 ? pTab->aCol[pTab->iPKey].zCnName:
157668 if( pTab->iPKey>=0 ){
157669 sqlite3_str_appendf(&str, "%s=?", pTab->aCol[pTab->iPKey].zCnName);
162618 if( iColumn==pIdx->pTable->iPKey ){
167100 if( iColumn==pIndex->pTable->iPKey ) iColumn = XN_ROWID;
183738 iCol = pTab->iPKey;
183762 autoinc = pTab->iPKey==iCol && (pTab->tabFlags & TF_Autoincrement)!=0;