Lines Matching refs:pRowSet
51386 SQLITE_PRIVATE int sqlite3RowSetTest(RowSet *pRowSet, int iBatch, sqlite3_int64 iRowid){
51390 assert( pRowSet!=0 && (pRowSet->rsFlags & ROWSET_NEXT)==0 );
51395 if( iBatch!=pRowSet->iBatch ){ /*OPTIMIZATION-IF-FALSE*/
51396 p = pRowSet->pEntry;
51398 struct RowSetEntry **ppPrevTree = &pRowSet->pForest;
51399 if( (pRowSet->rsFlags & ROWSET_SORTED)==0 ){ /*OPTIMIZATION-IF-FALSE*/
51403 for(pTree = pRowSet->pForest; pTree; pTree=pTree->pRight){
51416 *ppPrevTree = pTree = rowSetEntryAlloc(pRowSet);
51423 pRowSet->pEntry = 0;
51424 pRowSet->pLast = 0;
51425 pRowSet->rsFlags |= ROWSET_SORTED;
51427 pRowSet->iBatch = iBatch;
51433 for(pTree = pRowSet->pForest; pTree; pTree=pTree->pRight){