Lines Matching refs:pCtx

959   sqlite3_context *pCtx,
967 zFake = zName ? shellFakeSchema(sqlite3_context_db_handle(pCtx), 0, zName) : 0;
969 sqlite3_result_text(pCtx, sqlite3_mprintf("/* %s */", zFake),
995 sqlite3_context *pCtx,
1011 sqlite3 *db = sqlite3_context_db_handle(pCtx);
1039 sqlite3_result_text(pCtx, z, -1, sqlite3_free);
1045 sqlite3_result_value(pCtx, apVal[0]);
2414 sqlite3_context *pCtx,
2524 if( pCtx ) sqlite3_result_error_nomem(pCtx);
2532 static void decimal_result(sqlite3_context *pCtx, Decimal *p){
2537 sqlite3_result_error_nomem(pCtx);
2541 sqlite3_result_null(pCtx);
2546 sqlite3_result_error_nomem(pCtx);
2579 sqlite3_result_text(pCtx, z, i, sqlite3_free);
4994 sqlite3_context *pCtx, /* Context to return bytes written in */
5042 sqlite3_result_int64(pCtx, nWrite);
7781 ** return value in context pCtx to the result (a blob).
7783 ** If an error occurs, an error code is left in pCtx instead.
7786 sqlite3_context *pCtx, /* Store result here */
7793 sqlite3_result_error_nomem(pCtx);
7806 zipfileCtxErrorMsg(pCtx, "inflateInit2() failed (%d)", err);
7810 zipfileCtxErrorMsg(pCtx, "inflate() failed (%d)", err);
7812 sqlite3_result_blob(pCtx, aRes, nOut, zipfileFree);
8789 static void zipfileStep(sqlite3_context *pCtx, int nVal, sqlite3_value **apVal){
8818 p = (ZipfileCtx*)sqlite3_aggregate_context(pCtx, sizeof(ZipfileCtx));
8953 sqlite3_result_error(pCtx, zErr, -1);
8955 sqlite3_result_error_code(pCtx, rc);
8964 static void zipfileFinal(sqlite3_context *pCtx){
8970 p = (ZipfileCtx*)sqlite3_aggregate_context(pCtx, sizeof(ZipfileCtx));
8982 sqlite3_result_error_nomem(pCtx);
8987 sqlite3_result_blob(pCtx, aZip, (int)nZip, zipfileFree);
10614 void *pCtx,
10626 sqlite3expert *p = (sqlite3expert*)pCtx;
10821 sqlite3_context *pCtx,
10825 struct IdxSampleCtx *p = (struct IdxSampleCtx*)sqlite3_user_data(pCtx);
10841 sqlite3_result_int(pCtx, bRet);
10862 sqlite3_context *pCtx,
10866 struct IdxRemCtx *p = (struct IdxRemCtx*)sqlite3_user_data(pCtx);
10881 sqlite3_result_int64(pCtx, pSlot->iVal);
10885 sqlite3_result_double(pCtx, pSlot->rVal);
10889 sqlite3_result_blob(pCtx, pSlot->z, pSlot->n, SQLITE_TRANSIENT);
10893 sqlite3_result_text(pCtx, pSlot->z, pSlot->n, SQLITE_TRANSIENT);
10918 sqlite3_result_error_nomem(pCtx);
11084 struct IdxRemCtx *pCtx = 0;
11111 pCtx = (struct IdxRemCtx*)idxMalloc(&rc, nByte);
11117 dbrem, "rem", 2, SQLITE_UTF8, (void*)pCtx, idxRemFunc, 0, 0
11127 pCtx->nSlot = nMax+1;
11163 if( pCtx ){
11164 for(i=0; i<pCtx->nSlot; i++){
11165 sqlite3_free(pCtx->aSlot[i].z);
11167 sqlite3_free(pCtx);
11839 ** result of context object pCtx.
11842 sqlite3_context *pCtx,
11853 sqlite3_result_null(pCtx);
11857 sqlite3_result_int(pCtx, 0);
11860 sqlite3_result_int(pCtx, 1);
11878 sqlite3_result_double(pCtx, r);
11880 sqlite3_result_int64(pCtx, (sqlite3_int64)v);
11891 sqlite3_result_text16be(pCtx, (void*)pData, n, SQLITE_TRANSIENT);
11894 sqlite3_result_text16le(pCtx, (void*)pData, n, SQLITE_TRANSIENT);
11898 sqlite3_result_text(pCtx, (char*)pData, n, SQLITE_TRANSIENT);
11902 sqlite3_result_blob(pCtx, pData, n, SQLITE_TRANSIENT);
12461 ** to this function (pCtx) as its first parameter, and a pointer to a
12481 void *pCtx
13267 sqlite3_context *pCtx,
13271 sqlite3_recover *p = (sqlite3_recover*)sqlite3_user_data(pCtx);
13274 sqlite3_result_int(pCtx, recoverBitmapQuery(p->laf.pUsed, pgno));
13292 sqlite3_context *pCtx,
13296 sqlite3_recover *p = (sqlite3_recover*)sqlite3_user_data(pCtx);
13303 sqlite3_result_int64(pCtx, nPg);
13325 sqlite3_result_blob(pCtx, aPg, nPg-p->nReserve, SQLITE_TRANSIENT);
13332 if( p->zErrMsg ) sqlite3_result_error(pCtx, p->zErrMsg, -1);
13333 sqlite3_result_error_code(pCtx, p->errCode);
15743 sqlite3_context *pCtx,
15747 ShellState *p = (ShellState*)sqlite3_user_data(pCtx);
15750 sqlite3_result_value(pCtx, apVal[0]);
19162 static int session_filter(void *pCtx, const char *zTab){
19163 OpenSession *pSession = (OpenSession*)pCtx;
20616 sqlite3_context *pCtx,
20620 sqlite3 *db = sqlite3_context_db_handle(pCtx);
20635 sqlite3_result_text(pCtx, "", -1, SQLITE_STATIC);
20647 sqlite3_result_text(pCtx, z, -1, SQLITE_TRANSIENT);
21699 static int recoverSqlCb(void *pCtx, const char *zSql){
21700 ShellState *pState = (ShellState*)pCtx;