Searched refs:iPKey (Results 1 – 18 of 18) sorted by relevance
216 if( pParent->iPKey>=0 ){ in sqlite3FkLocateIndex()218 if( !sqlite3StrICmp(pParent->aCol[pParent->iPKey].zCnName, zKey) ){ in sqlite3FkLocateIndex()421 assert( aiCol[i]!=pTab->iPKey ); in fkLookupParent()422 if( pIdx->aiColumn[i]==pTab->iPKey ){ in fkLookupParent()484 if( iCol>=0 && iCol!=pTab->iPKey ){ in exprTableRegister()808 if( iChildKey==pTab->iPKey && bChngRowid ) return 1; in fkChildIsModified()836 if( aChange[iKey]>=0 || (iKey==pTab->iPKey && bChngRowid) ){ in fkParentIsModified()970 if( aiCol[i]==pTab->iPKey ){ in sqlite3FkCheck()980 char *zCol = pTo->aCol[pIdx ? pIdx->aiColumn[i] : pTo->iPKey].zCnName; in sqlite3FkCheck()1250 assert( pIdx!=0 || (pTab->iPKey>=0 && pTab->iPKey<pTab->nCol) ); in fkActionTrigger()[all …]
179 }else if( pTab->iPKey>=0 ){ in sqlite3AuthRead()180 assert( pTab->iPKey<pTab->nCol ); in sqlite3AuthRead()181 zCol = pTab->aCol[pTab->iPKey].zCnName; in sqlite3AuthRead()
481 assert( HasRowid(p) || p->iPKey<0 ); in sqlite3LocateTable()1313 pTable->iPKey = -1; in sqlite3StartTable()1883 pTab->iPKey = iCol; in sqlite3AddPrimaryKey()2210 if( pTab->iPKey<0 ) wTable++; in estimateTableWidth()2369 if( pTab->iPKey>=0 ){ in convertToWithoutRowidTable()2384 pTab->iPKey = -1; in convertToWithoutRowidTable()2684 && p->iPKey!=ii in sqlite3EndTable()4201 j = pTab->iPKey; in sqlite3CreateIndex()4265 || pTab->iPKey<0 || sqlite3TableColumnToIndex(pIndex, pTab->iPKey)>=0 ); in sqlite3CreateIndex()4270 if( j==pTab->iPKey ) continue; in sqlite3CreateIndex()[all …]
876 if( j==pTab->iPKey ){ in sqlite3Insert()997 ipkColumn = pTab->iPKey; in sqlite3Insert()1141 if( i==pTab->iPKey ){ in sqlite3Insert()1743 if( i==pTab->iPKey ){ in sqlite3GenerateConstraintChecks()2206 }else if( iField==XN_ROWID || iField==pTab->iPKey ){ in sqlite3GenerateConstraintChecks()2816 if( pDest->iPKey>=0 ) onError = pDest->keyConf; in xferOptimization()2878 if( pDest->iPKey!=pSrc->iPKey ){ in xferOptimization()3014 (pDest->iPKey<0 && pDest->pIndex!=0) /* (1) */ in xferOptimization()3043 if( pDest->iPKey>=0 ){ in xferOptimization()
477 if( j==pTab->iPKey ){ in sqlite3Update()932 if( i==pTab->iPKey ){ in sqlite3Update()1004 }else if( aXRef[i]<0 && i!=pTab->iPKey ){ in sqlite3Update()
182 const char *zRowid = pTab->iPKey>=0 ? pTab->aCol[pTab->iPKey].zCnName: in sqlite3WhereExplainOneScan()257 if( pTab->iPKey>=0 ){ in sqlite3WhereExplainBloomFilter()258 sqlite3_str_appendf(&str, "%s=?", pTab->aCol[pTab->iPKey].zCnName); in sqlite3WhereExplainBloomFilter()
405 pExpr->iColumn = j==pTab->iPKey ? -1 : (i16)j; in lookupName()475 if( iCol==pTab->iPKey ){ in lookupName()771 if( p->y.pTab->iPKey==iCol ){ in sqlite3CreateColumnExpr()
1970 if( iIdx==p->pTab->iPKey ){ in sqlite3_preupdate_old()2066 if( iIdx==p->pTab->iPKey ){ in sqlite3_preupdate_new()2088 if( iIdx==p->pTab->iPKey ){ in sqlite3_preupdate_new()
1499 sCtx.iCol = ((iCol==pTab->iPKey) ? -1 : iCol); in renameColumnFunc()1538 renameTokenFind(&sParse, &sCtx, (void*)&sParse.pNewTable->iPKey); in renameColumnFunc()2233 if( i==pTab->iPKey ){ in sqlite3AlterDropColumn()
1943 if( iCol<0 ) iCol = pTab->iPKey; in columnTypeImpl()2119 if( iCol<0 ) iCol = pTab->iPKey; in sqlite3GenerateColumnNames()2214 if( iCol<0 ) iCol = pTab->iPKey; in sqlite3ColumnsFromExprList()2356 pTab->iPKey = -1; in sqlite3ResultSetOfSelect()5515 pTab->iPKey = -1; in resolveFromTermToCte()5662 pTab->iPKey = -1; in sqlite3ExpandSubquery()
1791 || pTab->iPKey==mxCol) ) mxCol--; in sqlite3Pragma()1835 if( j==pTab->iPKey ) continue; in sqlite3Pragma()
1249 pTab->iPKey = -1; in sqlite3VtabEponymousTableInit()
3826 iCol = pTab->iPKey; in sqlite3_table_column_metadata()3850 autoinc = pTab->iPKey==iCol && (pTab->tabFlags & TF_Autoincrement)!=0; in sqlite3_table_column_metadata()
3790 if( iCol<0 || iCol==pTab->iPKey ){ in sqlite3ExprCodeGetColumnOfTable()4693 assert( pTab->iPKey<0 || iCol!=pTab->iPKey ); in sqlite3ExprCodeTarget()
1032 pStat1->iPKey = -1; in analyzeOneTable()
457 if( iColumn==pIdx->pTable->iPKey ){ in whereScanInit()4557 if( iColumn==pIndex->pTable->iPKey ) iColumn = XN_ROWID; in wherePathSatisfiesOrderBy()
2283 i16 iPKey; /* If not negative, use aCol[iPKey] as the rowid */ member
324 int iPKey; in columnNames() local325 if( truePk && (iPKey = sqlite3_column_int(pStmt,5))>0 ){ in columnNames()326 az[iPKey-1] = sid; in columnNames()