Lines Matching refs:pCtx
32 void *pCtx; member
51 int (*xTableFilter)(void *pCtx, const char *zTab);
526 assert( pTab->nCol==pSession->hook.xCount(pSession->hook.pCtx) ); in sessionPreupdateHash()
534 rc = pSession->hook.xNew(pSession->hook.pCtx, i, &pVal); in sessionPreupdateHash()
536 rc = pSession->hook.xOld(pSession->hook.pCtx, i, &pVal); in sessionPreupdateHash()
872 rc = pSession->hook.xNew(pSession->hook.pCtx, iCol, &pVal); in sessionPreupdateEqual()
875 rc = pSession->hook.xOld(pSession->hook.pCtx, iCol, &pVal); in sessionPreupdateEqual()
1165 static int sessionStat1Old(void *pCtx, int iCol, sqlite3_value **ppVal){ in sessionStat1Old() argument
1166 SessionStat1Ctx *p = (SessionStat1Ctx*)pCtx; in sessionStat1Old()
1168 int rc = p->hook.xOld(p->hook.pCtx, iCol, &pVal); in sessionStat1Old()
1175 static int sessionStat1New(void *pCtx, int iCol, sqlite3_value **ppVal){ in sessionStat1New() argument
1176 SessionStat1Ctx *p = (SessionStat1Ctx*)pCtx; in sessionStat1New()
1178 int rc = p->hook.xNew(p->hook.pCtx, iCol, &pVal); in sessionStat1New()
1185 static int sessionStat1Count(void *pCtx){ in sessionStat1Count() argument
1186 SessionStat1Ctx *p = (SessionStat1Ctx*)pCtx; in sessionStat1Count()
1187 return p->hook.xCount(p->hook.pCtx); in sessionStat1Count()
1189 static int sessionStat1Depth(void *pCtx){ in sessionStat1Depth() argument
1190 SessionStat1Ctx *p = (SessionStat1Ctx*)pCtx; in sessionStat1Depth()
1191 return p->hook.xDepth(p->hook.pCtx); in sessionStat1Depth()
1206 pSession->hook.xNew(pSession->hook.pCtx, ii, &p); in sessionUpdateMaxSize()
1223 pSession->hook.xNew(pSession->hook.pCtx, ii, &p); in sessionUpdateMaxSize()
1317 if( pTab->nCol!=pSession->hook.xCount(pSession->hook.pCtx) ){ in sessionPreupdateOneChange()
1331 pSession->hook.pCtx = (void*)&stat1; in sessionPreupdateOneChange()
1375 TESTONLY(int trc = ) pSession->hook.xOld(pSession->hook.pCtx, i, &p); in sessionPreupdateOneChange()
1378 TESTONLY(int trc = ) pSession->hook.xNew(pSession->hook.pCtx, i, &p); in sessionPreupdateOneChange()
1406 pSession->hook.xOld(pSession->hook.pCtx, i, &p); in sessionPreupdateOneChange()
1408 pSession->hook.xNew(pSession->hook.pCtx, i, &p); in sessionPreupdateOneChange()
1414 if( pSession->bIndirect || pSession->hook.xDepth(pSession->hook.pCtx) ){ in sessionPreupdateOneChange()
1425 if( pSession->hook.xDepth(pSession->hook.pCtx)==0 in sessionPreupdateOneChange()
1490 void *pCtx, /* Copy of third arg to preupdate_hook() */ in xPreUpdate() argument
1503 for(pSession=(sqlite3_session *)pCtx; pSession; pSession=pSession->pNext){ in xPreUpdate()
1527 static int sessionPreupdateOld(void *pCtx, int iVal, sqlite3_value **ppVal){ in sessionPreupdateOld() argument
1528 return sqlite3_preupdate_old((sqlite3*)pCtx, iVal, ppVal); in sessionPreupdateOld()
1530 static int sessionPreupdateNew(void *pCtx, int iVal, sqlite3_value **ppVal){ in sessionPreupdateNew() argument
1531 return sqlite3_preupdate_new((sqlite3*)pCtx, iVal, ppVal); in sessionPreupdateNew()
1533 static int sessionPreupdateCount(void *pCtx){ in sessionPreupdateCount() argument
1534 return sqlite3_preupdate_count((sqlite3*)pCtx); in sessionPreupdateCount()
1536 static int sessionPreupdateDepth(void *pCtx){ in sessionPreupdateDepth() argument
1537 return sqlite3_preupdate_depth((sqlite3*)pCtx); in sessionPreupdateDepth()
1547 pSession->hook.pCtx = (void*)pSession->db; in sessionPreupdateHooks()
1563 static int sessionDiffOld(void *pCtx, int iVal, sqlite3_value **ppVal){ in sessionDiffOld() argument
1564 SessionDiffCtx *p = (SessionDiffCtx*)pCtx; in sessionDiffOld()
1568 static int sessionDiffNew(void *pCtx, int iVal, sqlite3_value **ppVal){ in sessionDiffNew() argument
1569 SessionDiffCtx *p = (SessionDiffCtx*)pCtx; in sessionDiffNew()
1573 static int sessionDiffCount(void *pCtx){ in sessionDiffCount() argument
1574 SessionDiffCtx *p = (SessionDiffCtx*)pCtx; in sessionDiffCount()
1577 static int sessionDiffDepth(void *pCtx){ in sessionDiffDepth() argument
1589 pSession->hook.pCtx = (void*)pDiffCtx; in sessionDiffHooks()
1683 SessionDiffCtx *pDiffCtx = (SessionDiffCtx*)pSession->hook.pCtx; in sessionDiffFindNew()
1722 SessionDiffCtx *pDiffCtx = (SessionDiffCtx*)pSession->hook.pCtx; in sessionDiffFindModified()
1929 void *pCtx /* First argument passed to xFilter */ in sqlite3session_table_filter() argument
1932 pSession->pFilterCtx = pCtx; in sqlite3session_table_filter()
4289 void *pCtx, /* First argument for conflict handler */ in sessionConflictHandler() argument
4314 res = xConflict(pCtx, eType, pIter); in sessionConflictHandler()
4327 res = xConflict(pCtx, eType+1, pIter); in sessionConflictHandler()
4386 void *pCtx, /* First argument for the conflict handler */ in sessionApplyOneOp() argument
4425 SQLITE_CHANGESET_DATA, p, pIter, xConflict, pCtx, pbRetry in sessionApplyOneOp()
4429 SQLITE_CHANGESET_CONFLICT, p, pIter, xConflict, pCtx, 0 in sessionApplyOneOp()
4464 SQLITE_CHANGESET_DATA, p, pIter, xConflict, pCtx, pbRetry in sessionApplyOneOp()
4470 SQLITE_CHANGESET_CONFLICT, p, pIter, xConflict, pCtx, 0 in sessionApplyOneOp()
4497 SQLITE_CHANGESET_CONFLICT, p, pIter, xConflict, pCtx, pbReplace in sessionApplyOneOp()
4520 void *pCtx /* First argument passed to xConflict */ in sessionApplyOneWithRetry() argument
4526 rc = sessionApplyOneOp(pIter, pApply, xConflict, pCtx, &bReplace, &bRetry); in sessionApplyOneWithRetry()
4537 rc = sessionApplyOneOp(pIter, pApply, xConflict, pCtx, 0, 0); in sessionApplyOneWithRetry()
4558 rc = sessionApplyOneOp(pIter, pApply, xConflict, pCtx, 0, 0); in sessionApplyOneWithRetry()
4578 void *pCtx /* First argument passed to xConflict */ in sessionRetryConstraints() argument
4602 rc = sessionApplyOneWithRetry(db, pIter2, pApply, xConflict, pCtx); in sessionRetryConstraints()
4632 void *pCtx, /* Copy of sixth arg to _apply() */ in sessionChangesetApply() argument
4636 void *pCtx, /* Copy of fifth arg to _apply() */ in sessionChangesetApply()
4640 void *pCtx, /* First argument passed to xConflict */ in sessionChangesetApply()
4675 db, pIter->bPatchset, zTab, &sApply, xConflict, pCtx in sessionChangesetApply()
4699 schemaMismatch = (xFilter && (0==xFilter(pCtx, zNew))); in sessionChangesetApply()
4766 rc = sessionApplyOneWithRetry(db, pIter, &sApply, xConflict, pCtx); in sessionChangesetApply()
4777 rc = sessionRetryConstraints(db, bPatchset, zTab, &sApply, xConflict, pCtx); in sessionChangesetApply()
4788 res = xConflict(pCtx, SQLITE_CHANGESET_FOREIGN_KEY, &sIter); in sessionChangesetApply()
4831 void *pCtx, /* Copy of sixth arg to _apply() */ in sqlite3changeset_apply_v2() argument
4835 void *pCtx, /* Copy of sixth arg to _apply() */ in sqlite3changeset_apply_v2()
4839 void *pCtx, /* First argument passed to xConflict */ in sqlite3changeset_apply_v2()
4848 db, pIter, xFilter, xConflict, pCtx, ppRebase, pnRebase, flags in sqlite3changeset_apply_v2()
4864 void *pCtx, /* Copy of sixth arg to _apply() */ in sqlite3changeset_apply() argument
4868 void *pCtx, /* Copy of fifth arg to _apply() */ in sqlite3changeset_apply()
4872 void *pCtx /* First argument passed to xConflict */ in sqlite3changeset_apply()
4875 db, nChangeset, pChangeset, xFilter, xConflict, pCtx, 0, 0, 0 in sqlite3changeset_apply()
4889 void *pCtx, /* Copy of sixth arg to _apply() */ in sqlite3changeset_apply_v2_strm() argument
4893 void *pCtx, /* Copy of sixth arg to _apply() */ in sqlite3changeset_apply_v2_strm()
4897 void *pCtx, /* First argument passed to xConflict */ in sqlite3changeset_apply_v2_strm()
4906 db, pIter, xFilter, xConflict, pCtx, ppRebase, pnRebase, flags in sqlite3changeset_apply_v2_strm()
4916 void *pCtx, /* Copy of sixth arg to _apply() */ in sqlite3changeset_apply_strm() argument
4920 void *pCtx, /* Copy of sixth arg to _apply() */ in sqlite3changeset_apply_strm()
4924 void *pCtx /* First argument passed to xConflict */ in sqlite3changeset_apply_strm()
4927 db, xInput, pIn, xFilter, xConflict, pCtx, 0, 0, 0 in sqlite3changeset_apply_strm()