Lines Matching refs:iPKey
17195 i16 iPKey; /* If not negative, use aCol[iPKey] as the rowid */ member
86308 if( iIdx==p->pTab->iPKey ){
86404 if( iIdx==p->pTab->iPKey ){
86426 if( iIdx==p->pTab->iPKey ){
99940 pExpr->iColumn = j==pTab->iPKey ? -1 : (i16)j;
100009 if( iCol==pTab->iPKey ){
100276 if( p->y.pTab->iPKey==iCol ){
105368 if( iCol<0 || iCol==pTab->iPKey ){
106207 assert( pTab->iPKey<0 || iCol!=pTab->iPKey );
109480 sCtx.iCol = ((iCol==pTab->iPKey) ? -1 : iCol);
109519 renameTokenFind(&sParse, &sCtx, (void*)&sParse.pNewTable->iPKey);
110180 if( i==pTab->iPKey ){
111252 pStat1->iPKey = -1;
112940 }else if( pTab->iPKey>=0 ){
112941 assert( pTab->iPKey<pTab->nCol );
112942 zCol = pTab->aCol[pTab->iPKey].zCnName;
113519 assert( HasRowid(p) || p->iPKey<0 );
114347 pTable->iPKey = -1;
114915 sqlite3RenameTokenRemap(pParse, &pTab->iPKey, pCExpr);
114917 pTab->iPKey = iCol;
115244 if( pTab->iPKey<0 ) wTable++;
115402 if( pTab->iPKey>=0 ){
115405 sqlite3TokenInit(&ipkToken, pTab->aCol[pTab->iPKey].zCnName);
115413 sqlite3RenameTokenRemap(pParse, pList->a[0].pExpr, &pTab->iPKey);
115417 pTab->iPKey = -1;
115716 && p->iPKey!=ii
115726 || p->iPKey>=0 || sqlite3PrimaryKeyIndex(p)!=0 );
115728 || (p->iPKey<0 && sqlite3PrimaryKeyIndex(p)==0) );
115947 assert( HasRowid(p) || p->iPKey<0 );
117219 j = pTab->iPKey;
117282 || pTab->iPKey<0 || sqlite3TableColumnToIndex(pIndex, pTab->iPKey)>=0 );
117287 if( j==pTab->iPKey ) continue;
118360 if( pTab->iPKey>=0 ){
118362 pTab->aCol[pTab->iPKey].zCnName);
122758 if( pParent->iPKey>=0 ){
122760 if( !sqlite3StrICmp(pParent->aCol[pParent->iPKey].zCnName, zKey) ){
122964 assert( aiCol[i]!=pTab->iPKey );
122965 if( pIdx->aiColumn[i]==pTab->iPKey ){
123028 if( iCol>=0 && iCol!=pTab->iPKey ){
123356 if( iChildKey==pTab->iPKey && bChngRowid ) return 1;
123384 if( aChange[iKey]>=0 || (iKey==pTab->iPKey && bChngRowid) ){
123518 if( aiCol[i]==pTab->iPKey ){
123528 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zCnName;
123798 assert( pIdx!=0 || (pTab->iPKey>=0 && pTab->iPKey<pTab->nCol) );
123801 pTab->aCol[pIdx ? pIdx->aiColumn[i] : pTab->iPKey].zCnName);
124868 if( j==pTab->iPKey ){
124987 ipkColumn = pTab->iPKey;
125131 if( i==pTab->iPKey ){
125727 if( i==pTab->iPKey ){
126190 }else if( iField==XN_ROWID || iField==pTab->iPKey ){
126805 if( pDest->iPKey>=0 ) onError = pDest->keyConf;
126867 if( pDest->iPKey!=pSrc->iPKey ){
127003 (pDest->iPKey<0 && pDest->pIndex!=0) /* (1) */
127032 if( pDest->iPKey>=0 ){
131286 if( j==pTab->iPKey ) continue;
135104 if( iCol<0 ) iCol = pTab->iPKey;
135280 if( iCol<0 ) iCol = pTab->iPKey;
135372 if( iCol<0 ) iCol = pTab->iPKey;
135508 pTab->iPKey = -1;
138523 pTab->iPKey = -1;
138670 pTab->iPKey = -1;
142873 if( j==pTab->iPKey ){
143328 if( i==pTab->iPKey ){
143400 }else if( aXRef[i]<0 && i!=pTab->iPKey ){
145721 pTab->iPKey = -1;
151064 }else if( iColumn==pIdx->pTable->iPKey ){
154630 if( iColumn==pIndex->pTable->iPKey ) iColumn = XN_ROWID;
170382 iCol = pTab->iPKey;
170406 autoinc = pTab->iPKey==iCol && (pTab->tabFlags & TF_Autoincrement)!=0;