Lines Matching refs:pCursor

12415   BtCursor *pCursor                    /* Space to write cursor structure */
18016 BtCursor *pCursor; /* CURTYPE_BTREE. Btree cursor */ member
58371 BtCursor *pCursor; /* A list of all open cursors */
59187 for(p=pBtree->pBt->pCursor; p; p=p->pNext){
59439 for(p=pBt->pCursor; p; p=p->pNext){
59467 for(p=pBtree->pBt->pCursor; p; p=p->pNext){
59665 for(p=pBt->pCursor; p; p=p->pNext){
61307 pBt->pCursor = 0;
61528 pCur = pBt->pCursor;
61555 assert( !pBt->pCursor );
61688 assert( !pBt->pCursor );
62044 for(pCur=pBt->pCursor; pCur; pCur=pCur->pNext){
62919 for(p=pBtree->pBt->pCursor; p; p=p->pNext){
63176 for(pX=pBt->pCursor; pX; pX=pX->pNext){
63182 pCur->pNext = pBt->pCursor;
63183 pBt->pCursor = pCur;
63240 assert( pBt->pCursor!=0 );
63241 if( pBt->pCursor==pCur ){
63242 pBt->pCursor = pCur->pNext;
63244 BtCursor *pPrev = pBt->pCursor;
73375 assert( pCx->uc.pCursor!=0 );
73376 sqlite3BtreeCloseCursor(pCx->uc.pCursor);
74391 rc = sqlite3BtreeMovetoUnpacked(p->uc.pCursor, 0, p->movetoTarget, 0, &res);
74412 assert( p->uc.pCursor!=0 );
74413 assert( sqlite3BtreeCursorHasMoved(p->uc.pCursor) );
74414 rc = sqlite3BtreeCursorRestore(p->uc.pCursor, &isDifferentRow);
74426 if( sqlite3BtreeCursorHasMoved(p->uc.pCursor) ){
74457 if( sqlite3BtreeCursorHasMoved(p->uc.pCursor) ){
75801 pCur = pC->uc.pCursor;
77694 nRec = sqlite3BtreePayloadSize(p->pCsr->uc.pCursor);
77697 rc = sqlite3BtreePayload(p->pCsr->uc.pCursor, 0, nRec, aRec);
78328 pCx->uc.pCursor = (BtCursor*)
78330 sqlite3BtreeCursorZero(pCx->uc.pCursor);
80694 pCrsr = pC->uc.pCursor;
80758 rc = sqlite3VdbeMemFromBtree(pC->uc.pCursor, 0, aOffset[0], &sMem);
80876 rc = sqlite3VdbeMemFromBtree(pC->uc.pCursor, aOffset[p2], len, pDest);
81100 pCrsr = p->apCsr[pOp->p1]->uc.pCursor;
81691 rc = sqlite3BtreeCursor(pX, p2, wrFlag, pKeyInfo, pCur->uc.pCursor);
81706 sqlite3BtreeCursorHintFlags(pCur->uc.pCursor,
81775 pKeyInfo, pCx->uc.pCursor);
81780 0, pCx->uc.pCursor);
82001 assert( pC->uc.pCursor!=0 );
82011 assert( sqlite3BtreeCursorHasHint(pC->uc.pCursor, BTREE_SEEK_EQ)==0
82056 rc = sqlite3BtreeMovetoUnpacked(pC->uc.pCursor, 0, (u64)iKey, 0, &res);
82066 if( sqlite3BtreeCursorHasHint(pC->uc.pCursor, BTREE_SEEK_EQ) ){
82100 rc = sqlite3BtreeMovetoUnpacked(pC->uc.pCursor, &r, 0, 0, &res);
82117 rc = sqlite3BtreeNext(pC->uc.pCursor, &res);
82126 rc = sqlite3BtreePrevious(pC->uc.pCursor, &res);
82132 res = sqlite3BtreeEof(pC->uc.pCursor);
82231 assert( pC->uc.pCursor!=0 );
82266 rc = sqlite3BtreeMovetoUnpacked(pC->uc.pCursor, pIdxKey, 0, 0, &res);
82356 pCrsr = pC->uc.pCursor;
82428 assert( pC->uc.pCursor!=0 );
82456 rc = sqlite3BtreeLast(pC->uc.pCursor, &res);
82463 assert( sqlite3BtreeCursorIsValid(pC->uc.pCursor) );
82464 v = sqlite3BtreeIntegerKey(pC->uc.pCursor);
82514 }while( ((rc = sqlite3BtreeMovetoUnpacked(pC->uc.pCursor, 0, (u64)v,
82593 assert( pC->uc.pCursor!=0 );
82648 rc = sqlite3BtreeInsert(pC->uc.pCursor, &x,
82708 assert( pC->uc.pCursor!=0 );
82716 i64 iKey = sqlite3BtreeIntegerKey(pC->uc.pCursor);
82732 pC->movetoTarget = sqlite3BtreeIntegerKey(pC->uc.pCursor);
82774 rc = sqlite3BtreeDelete(pC->uc.pCursor, pOp->p5);
82904 assert( pC->uc.pCursor!=0 );
82905 pCrsr = pC->uc.pCursor;
82973 assert( pC->uc.pCursor!=0 );
82980 v = sqlite3BtreeIntegerKey(pC->uc.pCursor);
83001 assert( pC->uc.pCursor!=0 );
83002 sqlite3BtreeClearCursor(pC->uc.pCursor);
83035 pCrsr = pC->uc.pCursor;
83072 pCrsr = pC->uc.pCursor;
83145 pCrsr = pC->uc.pCursor;
83267 rc = pOp->p4.xAdvance(pC->uc.pCursor, &res);
83343 rc = sqlite3BtreeInsert(pC->uc.pCursor, &x,
83373 pCrsr = pC->uc.pCursor;
83430 assert( pC->uc.pCursor!=0 );
83446 rc = sqlite3VdbeIdxRowid(db, pC->uc.pCursor, &rowid);
83455 assert( pTabCur->uc.pCursor!=0 );
83531 assert( pC->uc.pCursor!=0);
83674 rc = sqlite3BtreeClearTableOfCursor(pC->uc.pCursor);
85216 sqlite3BtreeCursorHint(pC->uc.pCursor, BTREE_HINT_RANGE,
85430 p->pCsr = pC->uc.pCursor;
144780 int (*xClose)(sqlite3_tokenizer_cursor *pCursor);
144807 sqlite3_tokenizer_cursor *pCursor, /* Tokenizer cursor */
146954 static int fts3CloseMethod(sqlite3_vtab_cursor *pCursor){
146955 Fts3Cursor *pCsr = (Fts3Cursor *)pCursor;
148365 static int fts3NextMethod(sqlite3_vtab_cursor *pCursor){
148367 Fts3Cursor *pCsr = (Fts3Cursor *)pCursor;
148377 rc = fts3EvalNext((Fts3Cursor *)pCursor);
148427 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
148436 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
148437 Fts3Cursor *pCsr = (Fts3Cursor *)pCursor;
148465 memset(&pCursor[1], 0, sizeof(Fts3Cursor)-sizeof(sqlite3_vtab_cursor));
148536 return fts3NextMethod(pCursor);
148543 static int fts3EofMethod(sqlite3_vtab_cursor *pCursor){
148544 return ((Fts3Cursor *)pCursor)->isEof;
148553 static int fts3RowidMethod(sqlite3_vtab_cursor *pCursor, sqlite_int64 *pRowid){
148554 Fts3Cursor *pCsr = (Fts3Cursor *) pCursor;
148571 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
148576 Fts3Cursor *pCsr = (Fts3Cursor *) pCursor;
148577 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
148898 Fts3Cursor *pCursor; /* Cursor handle passed through apVal[0] */
148903 if( fts3FunctionArg(pContext, "optimize", apVal[0], &pCursor) ) return;
148904 p = (Fts3Table *)pCursor->base.pVtab;
151445 static int fts3auxCloseMethod(sqlite3_vtab_cursor *pCursor){
151446 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
151447 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor;
151477 static int fts3auxNextMethod(sqlite3_vtab_cursor *pCursor){
151478 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor;
151479 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
151572 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
151578 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor;
151579 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
151659 if( rc==SQLITE_OK ) rc = fts3auxNextMethod(pCursor);
151666 static int fts3auxEofMethod(sqlite3_vtab_cursor *pCursor){
151667 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor;
151675 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
151679 Fts3auxCursor *p = (Fts3auxCursor *)pCursor;
151716 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
151719 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor;
151949 sqlite3_tokenizer_cursor *pCursor;
151960 rc = sqlite3Fts3OpenTokenizer(pTokenizer, pParse->iLangid, z, i, &pCursor);
151966 rc = pModule->xNext(pCursor, &zToken, &nToken, &iStart, &iEnd, &iPosition);
152006 pModule->xClose(pCursor);
152047 sqlite3_tokenizer_cursor *pCursor = 0;
152074 pTokenizer, pParse->iLangid, zInput, nInput, &pCursor);
152080 rc = pModule->xNext(pCursor, &zByte, &nByte, &iBegin, &iEnd, &iPos);
152104 pModule->xClose(pCursor);
152105 pCursor = 0;
152139 if( pCursor ){
152140 pModule->xClose(pCursor);
153583 static int porterClose(sqlite3_tokenizer_cursor *pCursor){
153584 porter_tokenizer_cursor *c = (porter_tokenizer_cursor *) pCursor;
154056 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by porterOpen */
154063 porter_tokenizer_cursor *c = (porter_tokenizer_cursor *) pCursor;
154791 static int simpleClose(sqlite3_tokenizer_cursor *pCursor){
154792 simple_tokenizer_cursor *c = (simple_tokenizer_cursor *) pCursor;
154803 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by simpleOpen */
154810 simple_tokenizer_cursor *c = (simple_tokenizer_cursor *) pCursor;
154811 simple_tokenizer *t = (simple_tokenizer *) pCursor->pTokenizer;
155181 static int fts3tokCloseMethod(sqlite3_vtab_cursor *pCursor){
155182 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
155192 static int fts3tokNextMethod(sqlite3_vtab_cursor *pCursor){
155193 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
155194 Fts3tokTable *pTab = (Fts3tokTable *)(pCursor->pVtab);
155215 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
155222 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
155223 Fts3tokTable *pTab = (Fts3tokTable *)(pCursor->pVtab);
155245 return fts3tokNextMethod(pCursor);
155251 static int fts3tokEofMethod(sqlite3_vtab_cursor *pCursor){
155252 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
155260 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
155264 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
155292 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
155295 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
156142 int (*xNext)(sqlite3_tokenizer_cursor *pCursor,
161112 Fts3Cursor *pCursor; /* FTS3 Cursor */
161882 Fts3Table *pTab = (Fts3Table *)p->pCursor->base.pVtab;
161919 if( pExpr->bEof==0 && pExpr->iDocid==p->pCursor->iPrevId ){
161963 p->pCursor, pExpr, &p->aMatchinfo[3*iPhrase*p->nCol]
161984 rc = sqlite3Fts3EvalPhrasePoslist(p->pCursor, pExpr, i, &pCsr);
162348 sInfo.pCursor = pCsr;
163032 static int unicodeClose(sqlite3_tokenizer_cursor *pCursor){
163033 unicode_cursor *pCsr = (unicode_cursor *) pCursor;
167984 static int icuClose(sqlite3_tokenizer_cursor *pCursor){
167985 IcuCursor *pCsr = (IcuCursor *)pCursor;
167996 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by simpleOpen */
168003 IcuCursor *pCsr = (IcuCursor *)pCursor;
173755 static int statClose(sqlite3_vtab_cursor *pCursor){
173756 StatCursor *pCsr = (StatCursor *)pCursor;
173906 static int statNext(sqlite3_vtab_cursor *pCursor){
173910 StatCursor *pCsr = (StatCursor *)pCursor;
173911 StatTable *pTab = (StatTable *)pCursor->pVtab;
173977 if( pCsr->iPage==0 ) return statNext(pCursor);
174039 static int statEof(sqlite3_vtab_cursor *pCursor){
174040 StatCursor *pCsr = (StatCursor *)pCursor;
174045 sqlite3_vtab_cursor *pCursor,
174049 StatCursor *pCsr = (StatCursor *)pCursor;
174050 StatTable *pTab = (StatTable*)(pCursor->pVtab);
174059 sqlite3_free(pCursor->pVtab->zErrMsg);
174060 pCursor->pVtab->zErrMsg = sqlite3_mprintf("no such schema: %s", zDbase);
174061 return pCursor->pVtab->zErrMsg ? SQLITE_ERROR : SQLITE_NOMEM_BKPT;
174084 rc = statNext(pCursor);
174090 sqlite3_vtab_cursor *pCursor,
174094 StatCursor *pCsr = (StatCursor *)pCursor;
174136 static int statRowid(sqlite3_vtab_cursor *pCursor, sqlite_int64 *pRowid){
174137 StatCursor *pCsr = (StatCursor *)pCursor;
196359 static int fts5CloseMethod(sqlite3_vtab_cursor *pCursor){
196360 if( pCursor ){
196361 Fts5Table *pTab = (Fts5Table*)(pCursor->pVtab);
196362 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
196473 static int fts5NextMethod(sqlite3_vtab_cursor *pCursor){
196474 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
196766 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
196772 Fts5Table *pTab = (Fts5Table*)(pCursor->pVtab);
196774 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
196891 rc = fts5NextMethod(pCursor);
196903 static int fts5EofMethod(sqlite3_vtab_cursor *pCursor){
196904 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
196929 static int fts5RowidMethod(sqlite3_vtab_cursor *pCursor, sqlite_int64 *pRowid){
196930 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
197958 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
197962 Fts5Table *pTab = (Fts5Table*)(pCursor->pVtab);
197964 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
201842 static int fts5VocabCloseMethod(sqlite3_vtab_cursor *pCursor){
201843 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;
201855 static int fts5VocabNextMethod(sqlite3_vtab_cursor *pCursor){
201856 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;
201857 Fts5VocabTable *pTab = (Fts5VocabTable*)pCursor->pVtab;
201972 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
201978 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;
202023 rc = fts5VocabNextMethod(pCursor);
202033 static int fts5VocabEofMethod(sqlite3_vtab_cursor *pCursor){
202034 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;
202039 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
202043 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;
202045 int eType = ((Fts5VocabTable*)(pCursor->pVtab))->eType;
202083 sqlite3_vtab_cursor *pCursor,
202086 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;