Lines Matching refs:pVtab
5759 int (*xFindFunction)(sqlite3_vtab *pVtab, int nArg, const char *zName,
5762 int (*xRename)(sqlite3_vtab *pVtab, const char *zNew);
5946 sqlite3_vtab *pVtab; /* Virtual table of this cursor */
8809 VTable *pVtab; /* Used when p4type is P4_VTAB */
10469 sqlite3_vtab *pVtab; /* Pointer to vtab instance */
60865 sqlite3_vtab *pVtab = pOp->p4.pVtab->pVtab;
60866 sqlite3_snprintf(nTemp, zTemp, "vtab:%p:%p", pVtab, pVtab->pModule);
65393 static void importVtabErrMsg(Vdbe *p, sqlite3_vtab *pVtab){
65396 p->zErrMsg = sqlite3DbStrDup(db, pVtab->zErrMsg);
65397 sqlite3_free(pVtab->zErrMsg);
65398 pVtab->zErrMsg = 0;
65712 sqlite3_vtab *pVtab;
65841 sqlite3_vtab *pVtab;
65851 sqlite3_vtab *pVtab;
65858 sqlite3_vtab *pVtab;
65864 sqlite3_vtab *pVtab;
65870 sqlite3_vtab *pVtab;
65874 sqlite3_vtab *pVtab;
69705 sqlite3_vtab *pVtab;
69720 u.bn.pVtab = u.bn.pC->pVtabCursor->pVtab;
69721 u.bn.pModule = u.bn.pVtab->pModule;
69724 importVtabErrMsg(p, u.bn.pVtab);
71152 u.cl.pVTab = pOp->p4.pVtab;
71154 if( u.cl.pVTab ) importVtabErrMsg(p, u.cl.pVTab->pVtab);
71196 sqlite3_vtab *pVtab;
71202 u.cm.pVtab = pOp->p4.pVtab->pVtab;
71203 u.cm.pModule = (sqlite3_module *)u.cm.pVtab->pModule;
71204 assert(u.cm.pVtab && u.cm.pModule);
71205 rc = u.cm.pModule->xOpen(u.cm.pVtab, &u.cm.pVtabCursor);
71206 importVtabErrMsg(p, u.cm.pVtab);
71209 u.cm.pVtabCursor->pVtab = u.cm.pVtab;
71215 u.cm.pCur->pModule = u.cm.pVtabCursor->pVtab->pModule;
71252 sqlite3_vtab *pVtab;
71266 u.cn.pVtab = u.cn.pVtabCursor->pVtab;
71267 u.cn.pModule = u.cn.pVtab->pModule;
71286 importVtabErrMsg(p, u.cn.pVtab);
71310 sqlite3_vtab *pVtab;
71325 u.co.pVtab = pCur->pVtabCursor->pVtab;
71326 u.co.pModule = u.co.pVtab->pModule;
71339 importVtabErrMsg(p, u.co.pVtab);
71369 sqlite3_vtab *pVtab;
71381 u.cp.pVtab = u.cp.pCur->pVtabCursor->pVtab;
71382 u.cp.pModule = u.cp.pVtab->pModule;
71394 importVtabErrMsg(p, u.cp.pVtab);
71416 sqlite3_vtab *pVtab;
71420 u.cq.pVtab = pOp->p4.pVtab->pVtab;
71422 assert( u.cq.pVtab->pModule->xRename );
71431 rc = u.cq.pVtab->pModule->xRename(u.cq.pVtab, u.cq.pName->z);
71432 importVtabErrMsg(p, u.cq.pVtab);
71465 sqlite3_vtab *pVtab;
71477 u.cr.pVtab = pOp->p4.pVtab->pVtab;
71478 u.cr.pModule = (sqlite3_module *)u.cr.pVtab->pModule;
71493 rc = u.cr.pModule->xUpdate(u.cr.pVtab, u.cr.nArg, u.cr.apArg, &u.cr.rowid);
71495 importVtabErrMsg(p, u.cr.pVtab);
71500 if( (rc&0xff)==SQLITE_CONSTRAINT && pOp->p4.pVtab->bConstraint ){
79881 if( pVTab->pVtab->pModule->xRename==0 ){
90265 if( pOp->opcode==OP_VOpen && pOp->p4.pVtab==pVTab ){
90266 assert( pOp->p4.pVtab!=0 );
103390 VTable *pVtab;
103392 for(pVtab=pTab->pVTable; pVtab && pVtab->db!=db; pVtab=pVtab->pNext);
103393 return pVtab;
103409 sqlite3_vtab *p = pVTab->pVtab;
103779 rc = xConstruct(db, pMod->pAux, nArg, azArg, &pVTable->pVtab, &zErr);
103791 }else if( ALWAYS(pVTable->pVtab) ){
103794 pVTable->pVtab->pModule = pMod->pModule;
103911 /* Add pVtab to the end of sqlite3.aVTrans */
104037 rc = p->pMod->pModule->xDestroy(p->pVtab);
104042 p->pVtab = 0;
104064 sqlite3_vtab *p = pVTab->pVtab;
104095 sqlite3_vtab *pVtab = aVTrans[i]->pVtab;
104096 if( pVtab && (x = pVtab->pModule->xSync)!=0 ){
104097 rc = x(pVtab);
104099 *pzErrmsg = sqlite3DbStrDup(db, pVtab->zErrMsg);
104100 sqlite3_free(pVtab->zErrMsg);
104126 ** If the virtual table pVtab supports the transaction interface
104148 pModule = pVTab->pVtab->pModule;
104153 /* If pVtab is already in the aVTrans array, return early */
104164 rc = pModule->xBegin(pVTab->pVtab);
104198 if( pVTab->pVtab && pMod->iVersion>=2 ){
104213 rc = xMethod(pVTab->pVtab, iSavepoint);
104241 sqlite3_vtab *pVtab;
104257 pVtab = sqlite3GetVTable(db, pTab)->pVtab;
104258 assert( pVtab!=0 );
104259 assert( pVtab->pModule!=0 );
104260 pMod = (sqlite3_module *)pVtab->pModule;
104271 rc = pMod->xFindFunction(pVtab, nArg, zLowerName, &xFunc, &pArg);
106593 sqlite3_vtab *pVtab = sqlite3GetVTable(pParse->db, pTab)->pVtab;
106599 rc = pVtab->pModule->xBestIndex(pVtab, p);
106605 }else if( !pVtab->zErrMsg ){
106608 sqlite3ErrorMsg(pParse, "%s", pVtab->zErrMsg);
106611 sqlite3_free(pVtab->zErrMsg);
106612 pVtab->zErrMsg = 0;
119749 static int fts3DisconnectMethod(sqlite3_vtab *pVtab){
119750 Fts3Table *p = (Fts3Table *)pVtab;
119803 static int fts3DestroyMethod(sqlite3_vtab *pVtab){
119804 Fts3Table *p = (Fts3Table *)pVtab;
119822 return (rc==SQLITE_OK ? fts3DisconnectMethod(pVtab) : rc);
120815 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
120821 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
120840 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
120869 if( rc==SQLITE_OK && ((Fts3Table *)pCsr->base.pVtab)->zContentTbl==0 ){
122061 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
122210 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
122239 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
122359 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
122393 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
122403 sqlite3_vtab *pVtab, /* Virtual table handle */
122408 return sqlite3Fts3UpdateMethod(pVtab, nArg, apVal, pRowid);
122415 static int fts3SyncMethod(sqlite3_vtab *pVtab){
122438 Fts3Table *p = (Fts3Table*)pVtab;
122458 static int fts3BeginMethod(sqlite3_vtab *pVtab){
122459 Fts3Table *p = (Fts3Table*)pVtab;
122460 UNUSED_PARAMETER(pVtab);
122475 static int fts3CommitMethod(sqlite3_vtab *pVtab){
122476 TESTONLY( Fts3Table *p = (Fts3Table*)pVtab );
122477 UNUSED_PARAMETER(pVtab);
122490 static int fts3RollbackMethod(sqlite3_vtab *pVtab){
122491 Fts3Table *p = (Fts3Table*)pVtab;
122631 p = (Fts3Table *)pCursor->base.pVtab;
122673 sqlite3_vtab *pVtab, /* Virtual table handle */
122690 UNUSED_PARAMETER(pVtab);
122709 sqlite3_vtab *pVtab, /* Virtual table handle */
122712 Fts3Table *p = (Fts3Table *)pVtab;
122760 static int fts3SavepointMethod(sqlite3_vtab *pVtab, int iSavepoint){
122763 assert( ((Fts3Table *)pVtab)->inTransaction );
122764 assert( ((Fts3Table *)pVtab)->mxSavepoint < iSavepoint );
122765 TESTONLY( ((Fts3Table *)pVtab)->mxSavepoint = iSavepoint );
122766 if( ((Fts3Table *)pVtab)->bIgnoreSavepoint==0 ){
122767 rc = fts3SyncMethod(pVtab);
122777 static int fts3ReleaseMethod(sqlite3_vtab *pVtab, int iSavepoint){
122778 TESTONLY( Fts3Table *p = (Fts3Table*)pVtab );
122780 UNUSED_PARAMETER(pVtab);
122792 static int fts3RollbackToMethod(sqlite3_vtab *pVtab, int iSavepoint){
122793 Fts3Table *p = (Fts3Table*)pVtab;
123078 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
123219 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
123358 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
123551 Fts3Table *p = (Fts3Table*)pCsr->base.pVtab;
123604 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
123728 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
124354 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
124463 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
124513 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
124776 static int fts3auxDisconnectMethod(sqlite3_vtab *pVtab){
124777 Fts3auxTable *p = (Fts3auxTable *)pVtab;
124870 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
124903 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
125003 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
128397 static int fts3tokDisconnectMethod(sqlite3_vtab *pVtab){
128398 Fts3tokTable *pTab = (Fts3tokTable *)pVtab;
128457 Fts3tokTable *pTab = (Fts3tokTable *)(pCsr->base.pVtab);
128487 Fts3tokTable *pTab = (Fts3tokTable *)(pCursor->pVtab);
128516 Fts3tokTable *pTab = (Fts3tokTable *)(pCursor->pVtab);
130149 Fts3Table *p = (Fts3Table*)pCsr->base.pVtab;
133734 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
133886 sqlite3_vtab *pVtab, /* FTS3 vtab object */
133891 Fts3Table *p = (Fts3Table *)pVtab;
134654 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
135073 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
135173 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
135245 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
135388 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
135527 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
137112 static int rtreeDisconnect(sqlite3_vtab *pVtab){
137113 rtreeRelease((Rtree *)pVtab);
137120 static int rtreeDestroy(sqlite3_vtab *pVtab){
137121 Rtree *pRtree = (Rtree *)pVtab;
137154 pCsr->base.pVtab = pVTab;
137185 Rtree *pRtree = (Rtree *)(cur->pVtab);
137430 Rtree *pRtree = (Rtree *)(pVtabCursor->pVtab);
137475 Rtree *pRtree = (Rtree *)pVtabCursor->pVtab;
137488 Rtree *pRtree = (Rtree *)cur->pVtab;
137586 Rtree *pRtree = (Rtree *)pVtabCursor->pVtab;
139103 sqlite3_vtab *pVtab,
139108 Rtree *pRtree = (Rtree *)pVtab;
139223 static int rtreeRename(sqlite3_vtab *pVtab, const char *zNewName){
139224 Rtree *pRtree = (Rtree *)pVtab;