Lines Matching defs:pCtx
14010 sqlite3_context *pCtx, /* Write error here if one occurs */
14038 sqlite3_result_error(pCtx, "local time unavailable", -1);
14079 ** to context pCtx. If the error is an unrecognized modifier, no error is
14080 ** written to pCtx.
14082 static int parseModifier(sqlite3_context *pCtx, const char *zMod, DateTime *p){
14102 p->iJD += localtimeOffset(p, pCtx, &rc);
14124 c1 = localtimeOffset(p, pCtx, &rc);
14128 p->iJD += c1 - localtimeOffset(p, pCtx, &rc);
29709 afpLockingContext *pCtx;
29710 pNew->lockingContext = pCtx = sqlite3_malloc( sizeof(*pCtx) );
29711 if( pCtx==0 ){
29717 pCtx->dbPath = zFilename;
29718 pCtx->reserved = 0;
31011 proxyLockingContext *pCtx = (proxyLockingContext *)pFile->lockingContext;
31012 unixFile *conchFile = pCtx->conchFile;
31015 char *cPath = pCtx->conchFilePath;
31071 proxyLockingContext *pCtx = (proxyLockingContext *)pFile->lockingContext;
31072 unixFile *conchFile = pCtx->conchFile;
31149 proxyLockingContext *pCtx = (proxyLockingContext *)pFile->lockingContext;
31151 if( pCtx->conchHeld!=0 ){
31154 unixFile *conchFile = pCtx->conchFile;
31168 (pCtx->lockProxyPath ? pCtx->lockProxyPath : ":auto:"), getpid()));
31203 if( !pCtx->lockProxyPath ){
31221 && !strncmp(pCtx->lockProxyPath, &readBuf[PROXY_PATHINDEX],
31236 if( !pCtx->lockProxyPath ){
31237 proxyGetLockPath(pCtx->dbPath, lockPath, MAXPATHLEN);
31264 if( pCtx->lockProxyPath!=NULL ){
31265 strlcpy(&writeBuffer[PROXY_PATHINDEX], pCtx->lockProxyPath, MAXPATHLEN);
31314 fd = robust_open(pCtx->dbPath, pFile->openFlags, 0);
31323 if( rc==SQLITE_OK && !pCtx->lockProxy ){
31324 char *path = tempLockPath ? tempLockPath : pCtx->lockProxyPath;
31325 rc = proxyCreateUnixFile(path, &pCtx->lockProxy, 1);
31340 pCtx->lockProxyPath = sqlite3DbStrDup(0, tempLockPath);
31341 if( !pCtx->lockProxyPath ){
31347 pCtx->conchHeld = 1;
31349 if( pCtx->lockProxy->pMethod == &afpIoMethods ){
31351 afpCtx = (afpLockingContext *)pCtx->lockProxy->lockingContext;
31352 afpCtx->dbPath = pCtx->lockProxyPath;
31370 proxyLockingContext *pCtx; /* The locking context for the proxy lock */
31373 pCtx = (proxyLockingContext *)pFile->lockingContext;
31374 conchFile = pCtx->conchFile;
31376 (pCtx->lockProxyPath ? pCtx->lockProxyPath : ":auto:"),
31378 if( pCtx->conchHeld>0 ){
31381 pCtx->conchHeld = 0;
31436 proxyLockingContext *pCtx = (proxyLockingContext*)pFile->lockingContext;
31437 char *oldPath = pCtx->lockProxyPath;
31449 unixFile *lockProxy = pCtx->lockProxy;
31450 pCtx->lockProxy=NULL;
31451 pCtx->conchHeld = 0;
31458 pCtx->lockProxyPath = sqlite3DbStrDup(0, path);
31502 proxyLockingContext *pCtx;
31520 pCtx = sqlite3_malloc( sizeof(*pCtx) );
31521 if( pCtx==0 ){
31524 memset(pCtx, 0, sizeof(*pCtx));
31526 rc = proxyCreateConchPathname(dbPath, &pCtx->conchFilePath);
31528 rc = proxyCreateUnixFile(pCtx->conchFilePath, &pCtx->conchFile, 0);
31539 if( osStat(pCtx->conchFilePath, &conchInfo) == -1 ) {
31546 pCtx->conchHeld = -1; /* read only FS/ lockless */
31552 pCtx->lockProxyPath = sqlite3DbStrDup(0, lockPath);
31556 pCtx->dbPath = sqlite3DbStrDup(0, dbPath);
31557 if( pCtx->dbPath==NULL ){
31565 pCtx->oldLockingContext = pFile->lockingContext;
31566 pFile->lockingContext = pCtx;
31567 pCtx->pOldMethod = pFile->pMethod;
31570 if( pCtx->conchFile ){
31571 pCtx->conchFile->pMethod->xClose((sqlite3_file *)pCtx->conchFile);
31572 sqlite3_free(pCtx->conchFile);
31574 sqlite3DbFree(0, pCtx->lockProxyPath);
31575 sqlite3_free(pCtx->conchFilePath);
31576 sqlite3_free(pCtx);
31593 proxyLockingContext *pCtx = (proxyLockingContext*)pFile->lockingContext;
31595 if( pCtx->lockProxyPath ){
31596 *(const char **)pArg = pCtx->lockProxyPath;
31620 proxyLockingContext *pCtx =
31623 || (pCtx->lockProxyPath &&
31624 !strncmp(pCtx->lockProxyPath, proxyPath, MAXPATHLEN))
31662 proxyLockingContext *pCtx = (proxyLockingContext *)pFile->lockingContext;
31663 if( pCtx->conchHeld>0 ){
31664 unixFile *proxy = pCtx->lockProxy;
31701 proxyLockingContext *pCtx = (proxyLockingContext *)pFile->lockingContext;
31702 if( pCtx->conchHeld>0 ){
31703 unixFile *proxy = pCtx->lockProxy;
31725 proxyLockingContext *pCtx = (proxyLockingContext *)pFile->lockingContext;
31726 if( pCtx->conchHeld>0 ){
31727 unixFile *proxy = pCtx->lockProxy;
31743 proxyLockingContext *pCtx = (proxyLockingContext *)pFile->lockingContext;
31744 unixFile *lockProxy = pCtx->lockProxy;
31745 unixFile *conchFile = pCtx->conchFile;
31754 pCtx->lockProxy = 0;
31757 if( pCtx->conchHeld ){
31765 sqlite3DbFree(0, pCtx->lockProxyPath);
31766 sqlite3_free(pCtx->conchFilePath);
31767 sqlite3DbFree(0, pCtx->dbPath);
31769 pFile->lockingContext = pCtx->oldLockingContext;
31770 pFile->pMethod = pCtx->pOldMethod;
31771 sqlite3_free(pCtx);
41318 ** Parameter iPg is the page number of said page. The pCtx argument
41327 static int pagerUndoCallback(void *pCtx, Pgno iPg){
41329 Pager *pPager = (Pager *)pCtx;
62940 sqlite3_context *pCtx, /* Function context */
62946 if( sqlite3VdbeMemSetStr(&pCtx->s, z, n, enc, xDel)==SQLITE_TOOBIG ){
62947 sqlite3_result_error_toobig(pCtx);
62951 sqlite3_context *pCtx,
62957 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
62958 setResultStrOrError(pCtx, z, n, 0, xDel);
62960 SQLITE_API void sqlite3_result_double(sqlite3_context *pCtx, double rVal){
62961 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
62962 sqlite3VdbeMemSetDouble(&pCtx->s, rVal);
62964 SQLITE_API void sqlite3_result_error(sqlite3_context *pCtx, const char *z, int n){
62965 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
62966 pCtx->isError = SQLITE_ERROR;
62967 sqlite3VdbeMemSetStr(&pCtx->s, z, n, SQLITE_UTF8, SQLITE_TRANSIENT);
62970 SQLITE_API void sqlite3_result_error16(sqlite3_context *pCtx, const void *z, int n){
62971 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
62972 pCtx->isError = SQLITE_ERROR;
62973 sqlite3VdbeMemSetStr(&pCtx->s, z, n, SQLITE_UTF16NATIVE, SQLITE_TRANSIENT);
62976 SQLITE_API void sqlite3_result_int(sqlite3_context *pCtx, int iVal){
62977 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
62978 sqlite3VdbeMemSetInt64(&pCtx->s, (i64)iVal);
62980 SQLITE_API void sqlite3_result_int64(sqlite3_context *pCtx, i64 iVal){
62981 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
62982 sqlite3VdbeMemSetInt64(&pCtx->s, iVal);
62984 SQLITE_API void sqlite3_result_null(sqlite3_context *pCtx){
62985 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
62986 sqlite3VdbeMemSetNull(&pCtx->s);
62989 sqlite3_context *pCtx,
62994 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
62995 setResultStrOrError(pCtx, z, n, SQLITE_UTF8, xDel);
62999 sqlite3_context *pCtx,
63004 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
63005 setResultStrOrError(pCtx, z, n, SQLITE_UTF16NATIVE, xDel);
63008 sqlite3_context *pCtx,
63013 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
63014 setResultStrOrError(pCtx, z, n, SQLITE_UTF16BE, xDel);
63017 sqlite3_context *pCtx,
63022 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
63023 setResultStrOrError(pCtx, z, n, SQLITE_UTF16LE, xDel);
63026 SQLITE_API void sqlite3_result_value(sqlite3_context *pCtx, sqlite3_value *pValue){
63027 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
63028 sqlite3VdbeMemCopy(&pCtx->s, pValue);
63030 SQLITE_API void sqlite3_result_zeroblob(sqlite3_context *pCtx, int n){
63031 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
63032 sqlite3VdbeMemSetZeroBlob(&pCtx->s, n);
63034 SQLITE_API void sqlite3_result_error_code(sqlite3_context *pCtx, int errCode){
63035 pCtx->isError = errCode;
63036 if( pCtx->s.flags & MEM_Null ){
63037 sqlite3VdbeMemSetStr(&pCtx->s, sqlite3ErrStr(errCode), -1,
63043 SQLITE_API void sqlite3_result_error_toobig(sqlite3_context *pCtx){
63044 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
63045 pCtx->isError = SQLITE_TOOBIG;
63046 sqlite3VdbeMemSetStr(&pCtx->s, "string or blob too big", -1,
63051 SQLITE_API void sqlite3_result_error_nomem(sqlite3_context *pCtx){
63052 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
63053 sqlite3VdbeMemSetNull(&pCtx->s);
63054 pCtx->isError = SQLITE_NOMEM;
63055 pCtx->s.db->mallocFailed = 1;
63340 ** the user-function defined by pCtx.
63342 SQLITE_API void *sqlite3_get_auxdata(sqlite3_context *pCtx, int iArg){
63345 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
63346 pVdbeFunc = pCtx->pVdbeFunc;
63355 ** argument to the user-function defined by pCtx. Any previous value is
63359 sqlite3_context *pCtx,
63368 assert( sqlite3_mutex_held(pCtx->s.db->mutex) );
63369 pVdbeFunc = pCtx->pVdbeFunc;
63373 pVdbeFunc = sqlite3DbRealloc(pCtx->s.db, pVdbeFunc, nMalloc);
63377 pCtx->pVdbeFunc = pVdbeFunc;
63380 pVdbeFunc->pFunc = pCtx->pFunc;
114112 void* pCtx,
114173 pColl->pUser = pCtx;
114837 void* pCtx,
114843 rc = createCollation(db, zName, (u8)enc, pCtx, xCompare, 0);
114856 void* pCtx,
114863 rc = createCollation(db, zName, (u8)enc, pCtx, xCompare, xDel);
114877 void* pCtx,
114886 rc = createCollation(db, zName8, (u8)enc, pCtx, xCompare, 0);
119678 sqlite3_context *pCtx, /* Context for sqlite3_result_xxx() calls */
119692 sqlite3_result_int64(pCtx, pCsr->iPrevId);
119696 sqlite3_result_blob(pCtx, &pCsr, sizeof(pCsr), SQLITE_TRANSIENT);
119698 sqlite3_result_int64(pCtx, pCsr->iLangid);
119710 sqlite3_result_int(pCtx, iLangid);
119712 sqlite3_result_value(pCtx, sqlite3_column_value(pCsr->pStmt, iCol+1));
122387 sqlite3_context *pCtx; /* Write error message here */
128752 void *pCtx /* Second argument to pass to callback */
128759 rc = fts3ExprIterate2(pExpr->pLeft, piPhrase, x, pCtx);
128761 rc = fts3ExprIterate2(pExpr->pRight, piPhrase, x, pCtx);
128764 rc = x(pExpr, *piPhrase, pCtx);
128783 void *pCtx /* Second argument to pass to callback */
128786 return fts3ExprIterate2(pExpr, &iPhrase, x, pCtx);
129344 ** Argument pCtx is actually a pointer to a struct of type MatchInfo. This
129365 void *pCtx /* Pointer to MatchInfo structure */
129367 MatchInfo *p = (MatchInfo *)pCtx;
129381 void *pCtx /* Pointer to MatchInfo structure */
129383 MatchInfo *p = (MatchInfo *)pCtx;
129493 void *pCtx /* Pointer to MatchInfo structure */
129495 LcsIterator *aIter = (LcsIterator *)pCtx;
129787 sqlite3_context *pCtx, /* SQLite function call context */
129813 sqlite3_result_text(pCtx, "", 0, SQLITE_STATIC);
129877 sqlite3_result_error_code(pCtx, rc);
129880 sqlite3_result_text(pCtx, res.z, -1, sqlite3_free);
129934 sqlite3_context *pCtx, /* SQLite function call context */
129948 sqlite3_result_text(pCtx, "", 0, SQLITE_STATIC);
130060 sqlite3_result_error_code(pCtx, rc);
130063 sqlite3_result_text(pCtx, res.z, res.n-1, sqlite3_free);
133605 sqlite3_context *pCtx, /* SQLite scalar function context */
133612 sqlite3_result_error(pCtx, zBuf, -1);
133767 ** Collation sequence destructor function. The pCtx argument points to
133770 static void icuCollationDel(void *pCtx){
133771 UCollator *p = (UCollator *)pCtx;
133776 ** Collation sequence comparison function. The pCtx argument points to
133780 void *pCtx,
133787 UCollator *p = (UCollator *)pCtx;