Lines Matching refs:pCursor
10164 BtCursor *pCursor /* Space to write cursor structure */
15310 BtCursor *pCursor; /* The cursor structure of the backend */ member
53938 BtCursor *pCursor; /* A list of all open cursors */
54750 for(p=pBtree->pBt->pCursor; p; p=p->pNext){
54989 for(p=pBt->pCursor; p; p=p->pNext){
55017 for(p=pBtree->pBt->pCursor; p; p=p->pNext){
55217 for(p=pBt->pCursor; p; p=p->pNext){
56793 pBt->pCursor = 0;
57007 pCur = pBt->pCursor;
57034 assert( !pBt->pCursor );
57170 assert( !pBt->pCursor );
57496 for(pCur=pBt->pCursor; pCur; pCur=pCur->pNext){
58375 for(p=pBtree->pBt->pCursor; p; p=p->pNext){
58615 for(pX=pBt->pCursor; pX; pX=pX->pNext){
58621 pCur->pNext = pBt->pCursor;
58622 pBt->pCursor = pCur;
58679 assert( pBt->pCursor!=0 );
58680 if( pBt->pCursor==pCur ){
58681 pBt->pCursor = pCur->pNext;
58683 BtCursor *pPrev = pBt->pCursor;
63032 if( NEVER(pBt->pCursor) ){
63033 sqlite3ConnectionBlocked(p->db, pBt->pCursor->pBtree->db);
68538 }else if( pCx->pCursor ){
68539 sqlite3BtreeCloseCursor(pCx->pCursor);
69536 rc = sqlite3BtreeMovetoUnpacked(p->pCursor, 0, p->movetoTarget, 0, &res);
69556 assert( p->pCursor!=0 );
69557 assert( sqlite3BtreeCursorHasMoved(p->pCursor) );
69558 rc = sqlite3BtreeCursorRestore(p->pCursor, &isDifferentRow);
69569 if( sqlite3BtreeCursorHasMoved(p->pCursor) ){
69592 if( p->pCursor && sqlite3BtreeCursorHasMoved(p->pCursor) ){
70848 BtCursor *pCur = pC->pCursor;
70861 rc = sqlite3VdbeMemFromBtree(pC->pCursor, 0, (u32)nCellKey, 1, &m);
73047 pCx->pCursor = (BtCursor*)
73049 sqlite3BtreeCursorZero(pCx->pCursor);
75282 pCrsr = pC->pCursor;
75705 pCrsr = p->apCsr[pOp->p1]->pCursor;
76295 rc = sqlite3BtreeCursor(pX, p2, wrFlag, pKeyInfo, pCur->pCursor);
76306 sqlite3BtreeCursorHints(pCur->pCursor,
76374 rc = sqlite3BtreeCursor(pCx->pBt, pgno, 1, pKeyInfo, pCx->pCursor);
76378 rc = sqlite3BtreeCursor(pCx->pBt, MASTER_ROOT, 1, 0, pCx->pCursor);
76484 assert( pC->pCursor );
76582 assert( pC->pCursor!=0 );
76594 if( sqlite3BtreeCursorHasHint(pC->pCursor, BTREE_SEEK_EQ) ){
76647 rc = sqlite3BtreeMovetoUnpacked(pC->pCursor, 0, (u64)iKey, 0, &res);
76677 rc = sqlite3BtreeMovetoUnpacked(pC->pCursor, &r, 0, 0, &res);
76690 rc = sqlite3BtreeNext(pC->pCursor, &res);
76699 rc = sqlite3BtreePrevious(pC->pCursor, &res);
76705 res = sqlite3BtreeEof(pC->pCursor);
76732 assert( pC->pCursor!=0 );
76826 assert( pC->pCursor!=0 );
76863 rc = sqlite3BtreeMovetoUnpacked(pC->pCursor, pIdxKey, 0, 0, &res);
76918 pCrsr = pC->pCursor;
76987 assert( pC->pCursor!=0 );
77015 rc = sqlite3BtreeLast(pC->pCursor, &res);
77022 assert( sqlite3BtreeCursorIsValid(pC->pCursor) );
77023 rc = sqlite3BtreeKeySize(pC->pCursor, &v);
77074 }while( ((rc = sqlite3BtreeMovetoUnpacked(pC->pCursor, 0, (u64)v,
77154 assert( pC->pCursor!=0 );
77184 rc = sqlite3BtreeInsert(pC->pCursor, 0, iKey,
77231 assert( pC->pCursor!=0 ); /* Only valid for real tables, no pseudotables */
77236 sqlite3BtreeKeySize(pC->pCursor, &pC->movetoTarget);
77245 sqlite3BtreeKeySize(pC->pCursor, &iKey);
77250 rc = sqlite3BtreeDelete(pC->pCursor, pOp->p5);
77373 assert( pC->pCursor!=0 );
77374 pCrsr = pC->pCursor;
77457 assert( pC->pCursor!=0 );
77464 rc = sqlite3BtreeKeySize(pC->pCursor, &v);
77485 if( pC->pCursor ){
77486 sqlite3BtreeClearCursor(pC->pCursor);
77511 pCrsr = pC->pCursor;
77579 pCrsr = pC->pCursor;
77676 assert( pC->pCursor );
77693 rc = pOp->p4.xAdvance(pC->pCursor, &res);
77744 assert( pC->pCursor!=0 );
77753 rc = sqlite3BtreeInsert(pC->pCursor, zKey, nKey, "", 0, 0, pOp->p3,
77781 pCrsr = pC->pCursor;
77818 pCrsr = pC->pCursor;
77899 assert( pC->pCursor!=0);
78036 rc = sqlite3BtreeClearTableOfCursor(pC->pCursor);
79696 p->pCsr = pC->pCursor;
135410 int (*xClose)(sqlite3_tokenizer_cursor *pCursor);
135437 sqlite3_tokenizer_cursor *pCursor, /* Tokenizer cursor */
137558 static int fts3CloseMethod(sqlite3_vtab_cursor *pCursor){
137559 Fts3Cursor *pCsr = (Fts3Cursor *)pCursor;
138968 static int fts3NextMethod(sqlite3_vtab_cursor *pCursor){
138970 Fts3Cursor *pCsr = (Fts3Cursor *)pCursor;
138980 rc = fts3EvalNext((Fts3Cursor *)pCursor);
139030 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
139039 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
139040 Fts3Cursor *pCsr = (Fts3Cursor *)pCursor;
139068 memset(&pCursor[1], 0, sizeof(Fts3Cursor)-sizeof(sqlite3_vtab_cursor));
139139 return fts3NextMethod(pCursor);
139146 static int fts3EofMethod(sqlite3_vtab_cursor *pCursor){
139147 return ((Fts3Cursor *)pCursor)->isEof;
139156 static int fts3RowidMethod(sqlite3_vtab_cursor *pCursor, sqlite_int64 *pRowid){
139157 Fts3Cursor *pCsr = (Fts3Cursor *) pCursor;
139174 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
139179 Fts3Cursor *pCsr = (Fts3Cursor *) pCursor;
139180 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
139498 Fts3Cursor *pCursor; /* Cursor handle passed through apVal[0] */
139503 if( fts3FunctionArg(pContext, "optimize", apVal[0], &pCursor) ) return;
139504 p = (Fts3Table *)pCursor->base.pVtab;
142045 static int fts3auxCloseMethod(sqlite3_vtab_cursor *pCursor){
142046 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
142047 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor;
142077 static int fts3auxNextMethod(sqlite3_vtab_cursor *pCursor){
142078 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor;
142079 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
142172 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
142178 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor;
142179 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
142259 if( rc==SQLITE_OK ) rc = fts3auxNextMethod(pCursor);
142266 static int fts3auxEofMethod(sqlite3_vtab_cursor *pCursor){
142267 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor;
142275 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
142279 Fts3auxCursor *p = (Fts3auxCursor *)pCursor;
142316 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
142319 Fts3auxCursor *pCsr = (Fts3auxCursor *)pCursor;
142549 sqlite3_tokenizer_cursor *pCursor;
142560 rc = sqlite3Fts3OpenTokenizer(pTokenizer, pParse->iLangid, z, i, &pCursor);
142566 rc = pModule->xNext(pCursor, &zToken, &nToken, &iStart, &iEnd, &iPosition);
142606 pModule->xClose(pCursor);
142647 sqlite3_tokenizer_cursor *pCursor = 0;
142674 pTokenizer, pParse->iLangid, zInput, nInput, &pCursor);
142680 rc = pModule->xNext(pCursor, &zByte, &nByte, &iBegin, &iEnd, &iPos);
142704 pModule->xClose(pCursor);
142705 pCursor = 0;
142739 if( pCursor ){
142740 pModule->xClose(pCursor);
144183 static int porterClose(sqlite3_tokenizer_cursor *pCursor){
144184 porter_tokenizer_cursor *c = (porter_tokenizer_cursor *) pCursor;
144656 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by porterOpen */
144663 porter_tokenizer_cursor *c = (porter_tokenizer_cursor *) pCursor;
145369 static int simpleClose(sqlite3_tokenizer_cursor *pCursor){
145370 simple_tokenizer_cursor *c = (simple_tokenizer_cursor *) pCursor;
145381 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by simpleOpen */
145388 simple_tokenizer_cursor *c = (simple_tokenizer_cursor *) pCursor;
145389 simple_tokenizer *t = (simple_tokenizer *) pCursor->pTokenizer;
145759 static int fts3tokCloseMethod(sqlite3_vtab_cursor *pCursor){
145760 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
145770 static int fts3tokNextMethod(sqlite3_vtab_cursor *pCursor){
145771 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
145772 Fts3tokTable *pTab = (Fts3tokTable *)(pCursor->pVtab);
145793 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
145800 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
145801 Fts3tokTable *pTab = (Fts3tokTable *)(pCursor->pVtab);
145823 return fts3tokNextMethod(pCursor);
145829 static int fts3tokEofMethod(sqlite3_vtab_cursor *pCursor){
145830 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
145838 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
145842 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
145870 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
145873 Fts3tokCursor *pCsr = (Fts3tokCursor *)pCursor;
146719 int (*xNext)(sqlite3_tokenizer_cursor *pCursor,
151685 Fts3Cursor *pCursor; /* FTS3 Cursor */
152455 Fts3Table *pTab = (Fts3Table *)p->pCursor->base.pVtab;
152492 if( pExpr->bEof==0 && pExpr->iDocid==p->pCursor->iPrevId ){
152536 p->pCursor, pExpr, &p->aMatchinfo[3*iPhrase*p->nCol]
152557 rc = sqlite3Fts3EvalPhrasePoslist(p->pCursor, pExpr, i, &pCsr);
152921 sInfo.pCursor = pCsr;
153605 static int unicodeClose(sqlite3_tokenizer_cursor *pCursor){
153606 unicode_cursor *pCsr = (unicode_cursor *) pCursor;
158257 static int icuClose(sqlite3_tokenizer_cursor *pCursor){
158258 IcuCursor *pCsr = (IcuCursor *)pCursor;
158269 sqlite3_tokenizer_cursor *pCursor, /* Cursor returned by simpleOpen */
158276 IcuCursor *pCsr = (IcuCursor *)pCursor;
163163 static int statClose(sqlite3_vtab_cursor *pCursor){
163164 StatCursor *pCsr = (StatCursor *)pCursor;
163314 static int statNext(sqlite3_vtab_cursor *pCursor){
163318 StatCursor *pCsr = (StatCursor *)pCursor;
163319 StatTable *pTab = (StatTable *)pCursor->pVtab;
163385 if( pCsr->iPage==0 ) return statNext(pCursor);
163447 static int statEof(sqlite3_vtab_cursor *pCursor){
163448 StatCursor *pCsr = (StatCursor *)pCursor;
163453 sqlite3_vtab_cursor *pCursor,
163457 StatCursor *pCsr = (StatCursor *)pCursor;
163458 StatTable *pTab = (StatTable*)(pCursor->pVtab);
163467 sqlite3_free(pCursor->pVtab->zErrMsg);
163468 pCursor->pVtab->zErrMsg = sqlite3_mprintf("no such schema: %s", zDbase);
163469 return pCursor->pVtab->zErrMsg ? SQLITE_ERROR : SQLITE_NOMEM;
163492 rc = statNext(pCursor);
163498 sqlite3_vtab_cursor *pCursor,
163502 StatCursor *pCsr = (StatCursor *)pCursor;
163544 static int statRowid(sqlite3_vtab_cursor *pCursor, sqlite_int64 *pRowid){
163545 StatCursor *pCsr = (StatCursor *)pCursor;
178914 static int fts5CloseMethod(sqlite3_vtab_cursor *pCursor){
178915 if( pCursor ){
178916 Fts5Table *pTab = (Fts5Table*)(pCursor->pVtab);
178917 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
179024 static int fts5NextMethod(sqlite3_vtab_cursor *pCursor){
179025 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
179293 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
179299 Fts5Table *pTab = (Fts5Table*)(pCursor->pVtab);
179301 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
179415 rc = fts5NextMethod(pCursor);
179427 static int fts5EofMethod(sqlite3_vtab_cursor *pCursor){
179428 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
179453 static int fts5RowidMethod(sqlite3_vtab_cursor *pCursor, sqlite_int64 *pRowid){
179454 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
180324 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
180328 Fts5Table *pTab = (Fts5Table*)(pCursor->pVtab);
180330 Fts5Cursor *pCsr = (Fts5Cursor*)pCursor;
184092 static int fts5VocabCloseMethod(sqlite3_vtab_cursor *pCursor){
184093 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;
184105 static int fts5VocabNextMethod(sqlite3_vtab_cursor *pCursor){
184106 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;
184107 Fts5VocabTable *pTab = (Fts5VocabTable*)pCursor->pVtab;
184181 sqlite3_vtab_cursor *pCursor, /* The cursor used for this query */
184187 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;
184194 rc = fts5VocabNextMethod(pCursor);
184204 static int fts5VocabEofMethod(sqlite3_vtab_cursor *pCursor){
184205 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;
184210 sqlite3_vtab_cursor *pCursor, /* Cursor to retrieve value from */
184214 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;
184236 sqlite3_vtab_cursor *pCursor,
184239 Fts5VocabCursor *pCsr = (Fts5VocabCursor*)pCursor;