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;
151433 static int fts3auxCloseMethod(sqlite3_vtab_cursor *pCursor){
151434 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
151435 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor;
151465 static int fts3auxNextMethod(sqlite3_vtab_cursor *pCursor){
151466 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor;
151467 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
151560 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
151566 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor;
151567 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
151647 if( rc==SQLITE_OK ) rc = fts3auxNextMethod(pCursor);
151654 static int fts3auxEofMethod(sqlite3_vtab_cursor *pCursor){
151655 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor;
151663 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
151667 Fts3auxCursor *p = (Fts3auxCursor *)pCursor;
151704 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
151707 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor;
151937 sqlite3_tokenizer_cursor *pCursor;
151948 rc = sqlite3Fts3OpenTokenizer(pTokenizer, pParse->iLangid, z, i, &pCursor);
151954 rc = pModule->xNext(pCursor, &zToken, &nToken, &iStart, &iEnd, &iPosition);
151994 pModule->xClose(pCursor);
152035 sqlite3_tokenizer_cursor *pCursor = 0;
152062 pTokenizer, pParse->iLangid, zInput, nInput, &pCursor);
152068 rc = pModule->xNext(pCursor, &zByte, &nByte, &iBegin, &iEnd, &iPos);
152092 pModule->xClose(pCursor);
152093 pCursor = 0;
152127 if( pCursor ){
152128 pModule->xClose(pCursor);
153571 static int porterClose(sqlite3_tokenizer_cursor *pCursor){
153572 porter_tokenizer_cursor *c = (porter_tokenizer_cursor *) pCursor;
154044 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by porterOpen */
154051 porter_tokenizer_cursor *c = (porter_tokenizer_cursor *) pCursor;
154779 static int simpleClose(sqlite3_tokenizer_cursor *pCursor){
154780 simple_tokenizer_cursor *c = (simple_tokenizer_cursor *) pCursor;
154791 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by simpleOpen */
154798 simple_tokenizer_cursor *c = (simple_tokenizer_cursor *) pCursor;
154799 simple_tokenizer *t = (simple_tokenizer *) pCursor->pTokenizer;
155169 static int fts3tokCloseMethod(sqlite3_vtab_cursor *pCursor){
155170 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
155180 static int fts3tokNextMethod(sqlite3_vtab_cursor *pCursor){
155181 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
155182 Fts3tokTable *pTab = (Fts3tokTable *)(pCursor->pVtab);
155203 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
155210 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
155211 Fts3tokTable *pTab = (Fts3tokTable *)(pCursor->pVtab);
155233 return fts3tokNextMethod(pCursor);
155239 static int fts3tokEofMethod(sqlite3_vtab_cursor *pCursor){
155240 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
155248 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
155252 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
155280 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
155283 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
156130 int (*xNext)(sqlite3_tokenizer_cursor *pCursor,
161100 Fts3Cursor *pCursor; /* FTS3 Cursor */
161870 Fts3Table *pTab = (Fts3Table *)p->pCursor->base.pVtab;
161907 if( pExpr->bEof==0 && pExpr->iDocid==p->pCursor->iPrevId ){
161951 p->pCursor, pExpr, &p->aMatchinfo[3*iPhrase*p->nCol]
161972 rc = sqlite3Fts3EvalPhrasePoslist(p->pCursor, pExpr, i, &pCsr);
162336 sInfo.pCursor = pCsr;
163020 static int unicodeClose(sqlite3_tokenizer_cursor *pCursor){
163021 unicode_cursor *pCsr = (unicode_cursor *) pCursor;
167972 static int icuClose(sqlite3_tokenizer_cursor *pCursor){
167973 IcuCursor *pCsr = (IcuCursor *)pCursor;
167984 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by simpleOpen */
167991 IcuCursor *pCsr = (IcuCursor *)pCursor;
173743 static int statClose(sqlite3_vtab_cursor *pCursor){
173744 StatCursor *pCsr = (StatCursor *)pCursor;
173894 static int statNext(sqlite3_vtab_cursor *pCursor){
173898 StatCursor *pCsr = (StatCursor *)pCursor;
173899 StatTable *pTab = (StatTable *)pCursor->pVtab;
173965 if( pCsr->iPage==0 ) return statNext(pCursor);
174027 static int statEof(sqlite3_vtab_cursor *pCursor){
174028 StatCursor *pCsr = (StatCursor *)pCursor;
174033 sqlite3_vtab_cursor *pCursor,
174037 StatCursor *pCsr = (StatCursor *)pCursor;
174038 StatTable *pTab = (StatTable*)(pCursor->pVtab);
174047 sqlite3_free(pCursor->pVtab->zErrMsg);
174048 pCursor->pVtab->zErrMsg = sqlite3_mprintf("no such schema: %s", zDbase);
174049 return pCursor->pVtab->zErrMsg ? SQLITE_ERROR : SQLITE_NOMEM_BKPT;
174072 rc = statNext(pCursor);
174078 sqlite3_vtab_cursor *pCursor,
174082 StatCursor *pCsr = (StatCursor *)pCursor;
174124 static int statRowid(sqlite3_vtab_cursor *pCursor, sqlite_int64 *pRowid){
174125 StatCursor *pCsr = (StatCursor *)pCursor;
196347 static int fts5CloseMethod(sqlite3_vtab_cursor *pCursor){
196348 if( pCursor ){
196349 Fts5Table *pTab = (Fts5Table*)(pCursor->pVtab);
196350 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
196461 static int fts5NextMethod(sqlite3_vtab_cursor *pCursor){
196462 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
196754 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
196760 Fts5Table *pTab = (Fts5Table*)(pCursor->pVtab);
196762 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
196879 rc = fts5NextMethod(pCursor);
196891 static int fts5EofMethod(sqlite3_vtab_cursor *pCursor){
196892 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
196917 static int fts5RowidMethod(sqlite3_vtab_cursor *pCursor, sqlite_int64 *pRowid){
196918 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
197946 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
197950 Fts5Table *pTab = (Fts5Table*)(pCursor->pVtab);
197952 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
201830 static int fts5VocabCloseMethod(sqlite3_vtab_cursor *pCursor){
201831 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;
201843 static int fts5VocabNextMethod(sqlite3_vtab_cursor *pCursor){
201844 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;
201845 Fts5VocabTable *pTab = (Fts5VocabTable*)pCursor->pVtab;
201960 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
201966 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;
202011 rc = fts5VocabNextMethod(pCursor);
202021 static int fts5VocabEofMethod(sqlite3_vtab_cursor *pCursor){
202022 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;
202027 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
202031 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;
202033 int eType = ((Fts5VocabTable*)(pCursor->pVtab))->eType;
202071 sqlite3_vtab_cursor *pCursor,
202074 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;