Lines Matching refs:iPKey

18805   i16 iPKey;           /* If not negative, use aCol[iPKey] as the rowid */  member
93663 if( iIdx==p->pTab->iPKey ){
93835 if( iIdx==p->pTab->iPKey ){
93858 if( iIdx==p->pTab->iPKey ){
108497 pExpr->iColumn = j==pTab->iPKey ? -1 : (i16)j;
108593 if( pTab->iPKey==iCol ) iCol = -1;
108902 if( p->y.pTab->iPKey==iCol ){
114639 if( iCol<0 || iCol==pTab->iPKey ){
115687 assert( pTab->iPKey<0 || iCol!=pTab->iPKey );
119314 sCtx.iCol = ((iCol==pTab->iPKey) ? -1 : iCol);
119353 renameTokenFind(&sParse, &sCtx, (void*)&sParse.pNewTable->iPKey);
120048 if( i==pTab->iPKey ){
121143 pStat1->iPKey = -1;
122915 }else if( pTab->iPKey>=0 ){
122916 assert( pTab->iPKey<pTab->nCol );
122917 zCol = pTab->aCol[pTab->iPKey].zCnName;
123459 assert( HasRowid(p) || p->iPKey<0 );
124300 pTable->iPKey = -1;
124864 sqlite3RenameTokenRemap(pParse, &pTab->iPKey, pCExpr);
124866 pTab->iPKey = iCol;
125218 if( pTab->iPKey<0 ) wTable++;
125377 if( pTab->iPKey>=0 ){
125380 sqlite3TokenInit(&ipkToken, pTab->aCol[pTab->iPKey].zCnName);
125388 sqlite3RenameTokenRemap(pParse, pList->a[0].pExpr, &pTab->iPKey);
125392 pTab->iPKey = -1;
125693 && p->iPKey!=ii
125703 || p->iPKey>=0 || sqlite3PrimaryKeyIndex(p)!=0 );
125705 || (p->iPKey<0 && sqlite3PrimaryKeyIndex(p)==0) );
125939 assert( HasRowid(p) || p->iPKey<0 );
127224 j = pTab->iPKey;
127288 || pTab->iPKey<0 || sqlite3TableColumnToIndex(pIndex, pTab->iPKey)>=0 );
127293 if( j==pTab->iPKey ) continue;
128491 if( pTab->iPKey>=0 ){
128493 pTab->aCol[pTab->iPKey].zCnName);
133543 if( pParent->iPKey>=0 ){
133545 if( !sqlite3StrICmp(pParent->aCol[pParent->iPKey].zCnName, zKey) ){
133748 assert( aiCol[i]!=pTab->iPKey );
133749 if( pIdx->aiColumn[i]==pTab->iPKey ){
133811 if( iCol>=0 && iCol!=pTab->iPKey ){
134135 if( iChildKey==pTab->iPKey && bChngRowid ) return 1;
134163 if( aChange[iKey]>=0 || (iKey==pTab->iPKey && bChngRowid) ){
134298 if( aiCol[i]==pTab->iPKey ){
134308 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zCnName;
134585 assert( pIdx!=0 || (pTab->iPKey>=0 && pTab->iPKey<pTab->nCol) );
134588 pTab->aCol[pIdx ? pIdx->aiColumn[i] : pTab->iPKey].zCnName);
135896 if( j==pTab->iPKey ){
136034 ipkColumn = pTab->iPKey;
136178 if( i==pTab->iPKey ){
136783 if( i==pTab->iPKey ){
137247 }else if( iField==XN_ROWID || iField==pTab->iPKey ){
137859 if( pDest->iPKey>=0 ) onError = pDest->keyConf;
137921 if( pDest->iPKey!=pSrc->iPKey ){
138060 (pDest->iPKey<0 && pDest->pIndex!=0) /* (1) */
138089 if( pDest->iPKey>=0 ){
142522 if( mxCol==pTab->iPKey ) mxCol--;
142572 if( j==pTab->iPKey ) continue;
146861 if( iCol<0 ) iCol = pTab->iPKey;
147030 if( iCol<0 ) iCol = pTab->iPKey;
147125 if( iCol<0 ) iCol = pTab->iPKey;
147308 pTab->iPKey = -1;
150673 pTab->iPKey = -1;
150825 pTab->iPKey = -1;
155910 if( j==pTab->iPKey ){
156377 if( i==pTab->iPKey ){
156449 }else if( aXRef[i]<0 && i!=pTab->iPKey ){
158830 pTab->iPKey = -1;
159783 const char *zRowid = pTab->iPKey>=0 ? pTab->aCol[pTab->iPKey].zCnName:
159900 if( pTab->iPKey>=0 ){
159901 sqlite3_str_appendf(&str, "%s=?", pTab->aCol[pTab->iPKey].zCnName);
164974 if( iColumn==pIdx->pTable->iPKey ){
169695 if( iColumn==pIndex->pTable->iPKey ) iColumn = XN_ROWID;
186647 iCol = pTab->iPKey;
186671 autoinc = pTab->iPKey==iCol && (pTab->tabFlags & TF_Autoincrement)!=0;