Lines Matching refs:iPKey
18347 i16 iPKey; /* If not negative, use aCol[iPKey] as the rowid */ member
92077 if( iIdx==p->pTab->iPKey ){
92194 if( iIdx==p->pTab->iPKey ){
92216 if( iIdx==p->pTab->iPKey ){
106645 pExpr->iColumn = j==pTab->iPKey ? -1 : (i16)j;
106716 if( iCol==pTab->iPKey ){
107014 if( p->y.pTab->iPKey==iCol ){
112441 if( iCol<0 || iCol==pTab->iPKey ){
113418 assert( pTab->iPKey<0 || iCol!=pTab->iPKey );
116938 sCtx.iCol = ((iCol==pTab->iPKey) ? -1 : iCol);
116977 renameTokenFind(&sParse, &sCtx, (void*)&sParse.pNewTable->iPKey);
117672 if( i==pTab->iPKey ){
118761 pStat1->iPKey = -1;
120525 }else if( pTab->iPKey>=0 ){
120526 assert( pTab->iPKey<pTab->nCol );
120527 zCol = pTab->aCol[pTab->iPKey].zCnName;
121096 assert( HasRowid(p) || p->iPKey<0 );
121931 pTable->iPKey = -1;
122496 sqlite3RenameTokenRemap(pParse, &pTab->iPKey, pCExpr);
122498 pTab->iPKey = iCol;
122836 if( pTab->iPKey<0 ) wTable++;
122995 if( pTab->iPKey>=0 ){
122998 sqlite3TokenInit(&ipkToken, pTab->aCol[pTab->iPKey].zCnName);
123006 sqlite3RenameTokenRemap(pParse, pList->a[0].pExpr, &pTab->iPKey);
123010 pTab->iPKey = -1;
123311 && p->iPKey!=ii
123321 || p->iPKey>=0 || sqlite3PrimaryKeyIndex(p)!=0 );
123323 || (p->iPKey<0 && sqlite3PrimaryKeyIndex(p)==0) );
123558 assert( HasRowid(p) || p->iPKey<0 );
124838 j = pTab->iPKey;
124902 || pTab->iPKey<0 || sqlite3TableColumnToIndex(pIndex, pTab->iPKey)>=0 );
124907 if( j==pTab->iPKey ) continue;
126016 if( pTab->iPKey>=0 ){
126018 pTab->aCol[pTab->iPKey].zCnName);
130871 if( pParent->iPKey>=0 ){
130873 if( !sqlite3StrICmp(pParent->aCol[pParent->iPKey].zCnName, zKey) ){
131076 assert( aiCol[i]!=pTab->iPKey );
131077 if( pIdx->aiColumn[i]==pTab->iPKey ){
131139 if( iCol>=0 && iCol!=pTab->iPKey ){
131463 if( iChildKey==pTab->iPKey && bChngRowid ) return 1;
131491 if( aChange[iKey]>=0 || (iKey==pTab->iPKey && bChngRowid) ){
131626 if( aiCol[i]==pTab->iPKey ){
131636 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zCnName;
131913 assert( pIdx!=0 || (pTab->iPKey>=0 && pTab->iPKey<pTab->nCol) );
131916 pTab->aCol[pIdx ? pIdx->aiColumn[i] : pTab->iPKey].zCnName);
133020 if( j==pTab->iPKey ){
133141 ipkColumn = pTab->iPKey;
133285 if( i==pTab->iPKey ){
133887 if( i==pTab->iPKey ){
134351 }else if( iField==XN_ROWID || iField==pTab->iPKey ){
134963 if( pDest->iPKey>=0 ) onError = pDest->keyConf;
135025 if( pDest->iPKey!=pSrc->iPKey ){
135161 (pDest->iPKey<0 && pDest->pIndex!=0) /* (1) */
135190 if( pDest->iPKey>=0 ){
139586 if( mxCol==pTab->iPKey ) mxCol--;
139636 if( j==pTab->iPKey ) continue;
143761 if( iCol<0 ) iCol = pTab->iPKey;
143930 if( iCol<0 ) iCol = pTab->iPKey;
144025 if( iCol<0 ) iCol = pTab->iPKey;
144204 pTab->iPKey = -1;
147511 pTab->iPKey = -1;
147655 pTab->iPKey = -1;
152531 if( j==pTab->iPKey ){
152998 if( i==pTab->iPKey ){
153070 }else if( aXRef[i]<0 && i!=pTab->iPKey ){
155409 pTab->iPKey = -1;
156337 const char *zRowid = pTab->iPKey>=0 ? pTab->aCol[pTab->iPKey].zCnName:
156412 if( pTab->iPKey>=0 ){
156413 sqlite3_str_appendf(&str, "%s=?", pTab->aCol[pTab->iPKey].zCnName);
161277 if( iColumn==pIdx->pTable->iPKey ){
165712 if( iColumn==pIndex->pTable->iPKey ) iColumn = XN_ROWID;
182122 iCol = pTab->iPKey;
182146 autoinc = pTab->iPKey==iCol && (pTab->tabFlags & TF_Autoincrement)!=0;