Lines Matching defs:pCtx
2044 sqlite3_context *pCtx,
2051 sqlite3_result_double(pCtx, strtod(z,0));
2062 sqlite3_context *pCtx,
2072 sqlite3_result_text(pCtx, z, -1, SQLITE_TRANSIENT);
2083 sqlite3_context *pCtx,
2091 zFake = zName? shellFakeSchema(sqlite3_context_db_handle(pCtx), 0, zName) : 0;
2093 sqlite3_result_text(pCtx, sqlite3_mprintf("/* %s */", zFake),
2119 sqlite3_context *pCtx,
2135 sqlite3 *db = sqlite3_context_db_handle(pCtx);
2163 sqlite3_result_text(pCtx, z, -1, sqlite3_free);
2169 sqlite3_result_value(pCtx, apVal[0]);
3826 ** to the new object, or NULL if there is an error. If the pCtx argument
3836 sqlite3_context *pCtx, /* Report error here, if not null */
3883 if( pCtx ) sqlite3_result_error_nomem(pCtx);
3891 static void decimal_result(sqlite3_context *pCtx, Decimal *p){
3896 sqlite3_result_error_nomem(pCtx);
3900 sqlite3_result_null(pCtx);
3905 sqlite3_result_error_nomem(pCtx);
3938 sqlite3_result_text(pCtx, z, i, sqlite3_free);
3946 static void decimal_result_sci(sqlite3_context *pCtx, Decimal *p){
3957 sqlite3_result_error_nomem(pCtx);
3961 sqlite3_result_null(pCtx);
3970 sqlite3_result_error_nomem(pCtx);
3999 sqlite3_result_text(pCtx, z, -1, sqlite3_free);
7517 sqlite3_context *pCtx, /* Context to return bytes written in */
7567 sqlite3_result_int64(pCtx, nWrite);
10317 ** return value in context pCtx to the result (a blob).
10319 ** If an error occurs, an error code is left in pCtx instead.
10322 sqlite3_context *pCtx, /* Store result here */
10329 sqlite3_result_error_nomem(pCtx);
10342 zipfileCtxErrorMsg(pCtx, "inflateInit2() failed (%d)", err);
10346 zipfileCtxErrorMsg(pCtx, "inflate() failed (%d)", err);
10348 sqlite3_result_blob(pCtx, aRes, nOut, zipfileFree);
11345 static void zipfileStep(sqlite3_context *pCtx, int nVal, sqlite3_value **apVal){
11374 p = (ZipfileCtx*)sqlite3_aggregate_context(pCtx, sizeof(ZipfileCtx));
11509 sqlite3_result_error(pCtx, zErr, -1);
11511 sqlite3_result_error_code(pCtx, rc);
11520 static void zipfileFinal(sqlite3_context *pCtx){
11526 p = (ZipfileCtx*)sqlite3_aggregate_context(pCtx, sizeof(ZipfileCtx));
11538 sqlite3_result_error_nomem(pCtx);
11543 sqlite3_result_blob(pCtx, aZip, (int)nZip, zipfileFree);
13174 void *pCtx,
13186 sqlite3expert *p = (sqlite3expert*)pCtx;
13381 sqlite3_context *pCtx,
13385 struct IdxSampleCtx *p = (struct IdxSampleCtx*)sqlite3_user_data(pCtx);
13401 sqlite3_result_int(pCtx, bRet);
13422 sqlite3_context *pCtx,
13426 struct IdxRemCtx *p = (struct IdxRemCtx*)sqlite3_user_data(pCtx);
13441 sqlite3_result_int64(pCtx, pSlot->iVal);
13445 sqlite3_result_double(pCtx, pSlot->rVal);
13449 sqlite3_result_blob(pCtx, pSlot->z, pSlot->n, SQLITE_TRANSIENT);
13453 sqlite3_result_text(pCtx, pSlot->z, pSlot->n, SQLITE_TRANSIENT);
13478 sqlite3_result_error_nomem(pCtx);
13645 struct IdxRemCtx *pCtx = 0;
13672 pCtx = (struct IdxRemCtx*)idxMalloc(&rc, nByte);
13678 2, SQLITE_UTF8, (void*)pCtx, idxRemFunc, 0, 0
13688 pCtx->nSlot = nMax+1;
13724 if( pCtx ){
13725 for(i=0; i<pCtx->nSlot; i++){
13726 sqlite3_free(pCtx->aSlot[i].z);
13728 sqlite3_free(pCtx);
14696 sqlite3_context *pCtx,
14709 sqlite3_result_text(pCtx, zRes, nRes, SQLITE_TRANSIENT);
15298 ** to this function (pCtx) as its first parameter, and a pointer to a
15318 void *pCtx
15911 ** result of context object pCtx.
15914 sqlite3_context *pCtx,
15926 sqlite3_result_null(pCtx);
15930 sqlite3_result_int(pCtx, 0);
15933 sqlite3_result_int(pCtx, 1);
15951 sqlite3_result_double(pCtx, r);
15953 sqlite3_result_int64(pCtx, (sqlite3_int64)v);
15964 sqlite3_result_text16be(pCtx, (void*)pData, n, SQLITE_TRANSIENT);
15967 sqlite3_result_text16le(pCtx, (void*)pData, n, SQLITE_TRANSIENT);
15971 sqlite3_result_text(pCtx, (char*)pData, n, SQLITE_TRANSIENT);
15975 sqlite3_result_blob(pCtx, pData, n, SQLITE_TRANSIENT);
15981 sqlite3_result_double(pCtx, 0.0);
15983 sqlite3_result_int(pCtx, 0);
15985 sqlite3_result_text(pCtx, "", 0, SQLITE_STATIC);
15987 sqlite3_result_blob(pCtx, "", 0, SQLITE_STATIC);
17127 sqlite3_context *pCtx,
17131 sqlite3_recover *p = (sqlite3_recover*)sqlite3_user_data(pCtx);
17134 sqlite3_result_int(pCtx, recoverBitmapQuery(p->laf.pUsed, pgno));
17152 sqlite3_context *pCtx,
17156 sqlite3_recover *p = (sqlite3_recover*)sqlite3_user_data(pCtx);
17163 sqlite3_result_int64(pCtx, nPg);
17185 sqlite3_result_blob(pCtx, aPg, nPg-p->nReserve, SQLITE_TRANSIENT);
17192 if( p->zErrMsg ) sqlite3_result_error(pCtx, p->zErrMsg, -1);
17193 sqlite3_result_error_code(pCtx, p->errCode);
19619 sqlite3_context *pCtx,
19623 /* Unused: (ShellState*)sqlite3_user_data(pCtx); */
19626 sqlite3_result_value(pCtx, apVal[0]);
23231 static int session_filter(void *pCtx, const char *zTab){
23232 OpenSession *pSession = (OpenSession*)pCtx;
24625 sqlite3_context *pCtx,
24629 sqlite3 *db = sqlite3_context_db_handle(pCtx);
24644 sqlite3_result_text(pCtx, "", -1, SQLITE_STATIC);
24656 sqlite3_result_text(pCtx, z, -1, SQLITE_TRANSIENT);
25693 static int recoverSqlCb(void *pCtx, const char *zSql){
25694 ShellState *pState = (ShellState*)pCtx;