Lines Matching refs:pVtab
5443 int (*xFindFunction)(sqlite3_vtab *pVtab, int nArg, const char *zName,
5446 int (*xRename)(sqlite3_vtab *pVtab, const char *zNew);
5644 sqlite3_vtab *pVtab; /* Virtual table of this cursor */ member
9149 VTable *pVtab; /* Used when p4type is P4_VTAB */ member
10902 sqlite3_vtab *pVtab; /* Pointer to vtab instance */ member
63322 sqlite3_vtab *pVtab = pOp->p4.pVtab->pVtab;
63323 sqlite3_snprintf(nTemp, zTemp, "vtab:%p", pVtab);
63983 const sqlite3_module *pModule = pVtabCursor->pVtab->pModule;
63984 assert( pVtabCursor->pVtab->nRef>0 );
63985 pVtabCursor->pVtab->nRef--;
66255 SQLITE_PRIVATE void sqlite3VtabImportErrmsg(Vdbe *p, sqlite3_vtab *pVtab){
66258 p->zErrMsg = sqlite3DbStrDup(db, pVtab->zErrMsg);
66259 sqlite3_free(pVtab->zErrMsg);
66260 pVtab->zErrMsg = 0;
72439 sqlite3_vtab *pVtab;
72453 pVtab = pC->pVtabCursor->pVtab;
72454 pModule = pVtab->pModule;
72457 sqlite3VtabImportErrmsg(p, pVtab);
73978 pVTab = pOp->p4.pVtab;
73980 if( pVTab ) sqlite3VtabImportErrmsg(p, pVTab->pVtab);
74021 sqlite3_vtab *pVtab;
74027 pVtab = pOp->p4.pVtab->pVtab;
74028 if( pVtab==0 || NEVER(pVtab->pModule==0) ){
74032 pModule = pVtab->pModule;
74033 rc = pModule->xOpen(pVtab, &pVtabCursor);
74034 sqlite3VtabImportErrmsg(p, pVtab);
74037 pVtabCursor->pVtab = pVtab;
74043 pVtab->nRef++;
74080 sqlite3_vtab *pVtab;
74093 pVtab = pVtabCursor->pVtab;
74094 pModule = pVtab->pModule;
74110 sqlite3VtabImportErrmsg(p, pVtab);
74134 sqlite3_vtab *pVtab;
74148 pVtab = pCur->pVtabCursor->pVtab;
74149 pModule = pVtab->pModule;
74162 sqlite3VtabImportErrmsg(p, pVtab);
74191 sqlite3_vtab *pVtab;
74202 pVtab = pCur->pVtabCursor->pVtab;
74203 pModule = pVtab->pModule;
74213 sqlite3VtabImportErrmsg(p, pVtab);
74234 sqlite3_vtab *pVtab;
74237 pVtab = pOp->p4.pVtab->pVtab;
74239 assert( pVtab->pModule->xRename );
74249 rc = pVtab->pModule->xRename(pVtab, pName->z);
74250 sqlite3VtabImportErrmsg(p, pVtab);
74286 sqlite3_vtab *pVtab;
74298 pVtab = pOp->p4.pVtab->pVtab;
74299 if( pVtab==0 || NEVER(pVtab->pModule==0) ){
74303 pModule = pVtab->pModule;
74317 rc = pModule->xUpdate(pVtab, nArg, apArg, &rowid);
74319 sqlite3VtabImportErrmsg(p, pVtab);
74324 if( (rc&0xff)==SQLITE_CONSTRAINT && pOp->p4.pVtab->bConstraint ){
83075 if( pVTab->pVtab->pModule->xRename==0 ){
94991 if( pOp->opcode==OP_VOpen && pOp->p4.pVtab==pVTab ){
94992 assert( pOp->p4.pVtab!=0 );
109478 VTable *pVtab;
109480 for(pVtab=pTab->pVTable; pVtab && pVtab->db!=db; pVtab=pVtab->pNext);
109481 return pVtab;
109497 sqlite3_vtab *p = pVTab->pVtab;
109880 rc = xConstruct(db, pMod->pAux, nArg, azArg, &pVTable->pVtab, &zErr);
109893 }else if( ALWAYS(pVTable->pVtab) ){
109896 pVTable->pVtab->pModule = pMod->pModule;
110140 assert( p->pVtab );
110141 if( p->pVtab->nRef>0 ){
110146 rc = p->pMod->pModule->xDestroy(p->pVtab);
110150 p->pVtab = 0;
110172 sqlite3_vtab *p = pVTab->pVtab;
110202 sqlite3_vtab *pVtab = aVTrans[i]->pVtab;
110203 if( pVtab && (x = pVtab->pModule->xSync)!=0 ){
110204 rc = x(pVtab);
110205 sqlite3VtabImportErrmsg(p, pVtab);
110253 pModule = pVTab->pVtab->pModule;
110269 rc = pModule->xBegin(pVTab->pVtab);
110303 if( pVTab->pVtab && pMod->iVersion>=2 ){
110318 rc = xMethod(pVTab->pVtab, iSavepoint);
110346 sqlite3_vtab *pVtab;
110362 pVtab = sqlite3GetVTable(db, pTab)->pVtab;
110363 assert( pVtab!=0 );
110364 assert( pVtab->pModule!=0 );
110365 pMod = (sqlite3_module *)pVtab->pModule;
110376 rc = pMod->xFindFunction(pVtab, nArg, zLowerName, &xFunc, &pArg);
112792 sqlite3_vtab *pVtab = sqlite3GetVTable(pParse->db, pTab)->pVtab;
112797 rc = pVtab->pModule->xBestIndex(pVtab, p);
112803 }else if( !pVtab->zErrMsg ){
112806 sqlite3ErrorMsg(pParse, "%s", pVtab->zErrMsg);
112809 sqlite3_free(pVtab->zErrMsg);
112810 pVtab->zErrMsg = 0;
127360 static int fts3DisconnectMethod(sqlite3_vtab *pVtab){
127361 Fts3Table *p = (Fts3Table *)pVtab;
127414 static int fts3DestroyMethod(sqlite3_vtab *pVtab){
127415 Fts3Table *p = (Fts3Table *)pVtab;
127433 return (rc==SQLITE_OK ? fts3DisconnectMethod(pVtab) : rc);
128529 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
128535 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
128554 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
128583 if( rc==SQLITE_OK && ((Fts3Table *)pCsr->base.pVtab)->zContentTbl==0 ){
129775 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
129924 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
129981 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
130114 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
130148 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
130158 sqlite3_vtab *pVtab, /* Virtual table handle */
130163 return sqlite3Fts3UpdateMethod(pVtab, nArg, apVal, pRowid);
130170 static int fts3SyncMethod(sqlite3_vtab *pVtab){
130193 Fts3Table *p = (Fts3Table*)pVtab;
130243 static int fts3BeginMethod(sqlite3_vtab *pVtab){
130244 Fts3Table *p = (Fts3Table*)pVtab;
130245 UNUSED_PARAMETER(pVtab);
130260 static int fts3CommitMethod(sqlite3_vtab *pVtab){
130261 TESTONLY( Fts3Table *p = (Fts3Table*)pVtab );
130262 UNUSED_PARAMETER(pVtab);
130275 static int fts3RollbackMethod(sqlite3_vtab *pVtab){
130276 Fts3Table *p = (Fts3Table*)pVtab;
130416 p = (Fts3Table *)pCursor->base.pVtab;
130458 sqlite3_vtab *pVtab, /* Virtual table handle */
130475 UNUSED_PARAMETER(pVtab);
130494 sqlite3_vtab *pVtab, /* Virtual table handle */
130497 Fts3Table *p = (Fts3Table *)pVtab;
130551 static int fts3SavepointMethod(sqlite3_vtab *pVtab, int iSavepoint){
130554 assert( ((Fts3Table *)pVtab)->inTransaction );
130555 assert( ((Fts3Table *)pVtab)->mxSavepoint < iSavepoint );
130556 TESTONLY( ((Fts3Table *)pVtab)->mxSavepoint = iSavepoint );
130557 if( ((Fts3Table *)pVtab)->bIgnoreSavepoint==0 ){
130558 rc = fts3SyncMethod(pVtab);
130568 static int fts3ReleaseMethod(sqlite3_vtab *pVtab, int iSavepoint){
130569 TESTONLY( Fts3Table *p = (Fts3Table*)pVtab );
130571 UNUSED_PARAMETER(pVtab);
130583 static int fts3RollbackToMethod(sqlite3_vtab *pVtab, int iSavepoint){
130584 Fts3Table *p = (Fts3Table*)pVtab;
130869 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
131014 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
131285 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
131385 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
131536 Fts3Table *p = (Fts3Table*)pCsr->base.pVtab;
131589 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
131713 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
132353 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
132462 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
132512 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
132818 static int fts3auxDisconnectMethod(sqlite3_vtab *pVtab){
132819 Fts3auxTable *p = (Fts3auxTable *)pVtab;
132926 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
132959 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
133059 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
136521 static int fts3tokDisconnectMethod(sqlite3_vtab *pVtab){
136522 Fts3tokTable *pTab = (Fts3tokTable *)pVtab;
136581 Fts3tokTable *pTab = (Fts3tokTable *)(pCsr->base.pVtab);
136611 Fts3tokTable *pTab = (Fts3tokTable *)(pCursor->pVtab);
136640 Fts3tokTable *pTab = (Fts3tokTable *)(pCursor->pVtab);
138288 Fts3Table *p = (Fts3Table*)pCsr->base.pVtab;
142100 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
142254 sqlite3_vtab *pVtab, /* FTS3 vtab object */
142259 Fts3Table *p = (Fts3Table *)pVtab;
143030 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
143449 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
143549 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
143621 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
143764 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
143903 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
144941 #define RTREE_OF_CURSOR(X) ((Rtree*)((X)->base.pVtab))
145515 static int rtreeDisconnect(sqlite3_vtab *pVtab){
145516 rtreeRelease((Rtree *)pVtab);
145523 static int rtreeDestroy(sqlite3_vtab *pVtab){
145524 Rtree *pRtree = (Rtree *)pVtab;
145557 pCsr->base.pVtab = pVTab;
145588 Rtree *pRtree = (Rtree *)(cur->pVtab);
146118 Rtree *pRtree = (Rtree *)cur->pVtab;
146229 Rtree *pRtree = (Rtree *)pVtabCursor->pVtab;
146242 pCsr->base.pVtab = (sqlite3_vtab*)pRtree;
147498 sqlite3_vtab *pVtab,
147503 Rtree *pRtree = (Rtree *)pVtab;
147618 static int rtreeRename(sqlite3_vtab *pVtab, const char *zNewName){
147619 Rtree *pRtree = (Rtree *)pVtab;