Lines Matching refs:pRc
22224 int *pRc /* OUT: Error code. SQLITE_OK or ERROR */ in localtimeOffset() argument
22257 *pRc = SQLITE_ERROR; in localtimeOffset()
22273 *pRc = SQLITE_OK; in localtimeOffset()
65880 static u8 *pageFindSlot(MemPage *pPg, int nByte, int *pRc){
65909 *pRc = SQLITE_CORRUPT_PAGE(pPg);
65923 *pRc = SQLITE_CORRUPT_PAGE(pPg);
65930 *pRc = SQLITE_CORRUPT_PAGE(pPg);
166397 SQLITE_PRIVATE int sqlite3Fts3EvalTestDeferred(Fts3Cursor *pCsr, int *pRc);
166739 int *pRc, /* Success code */
166746 if( *pRc ) return;
166751 *pRc = SQLITE_NOMEM;
166753 *pRc = sqlite3_exec(db, zSql, 0, 0, 0);
166798 static void fts3DeclareVtab(int *pRc, Fts3Table *p){
166799 if( *pRc==SQLITE_OK ){
166828 *pRc = rc;
166835 SQLITE_PRIVATE void sqlite3Fts3CreateStatTable(int *pRc, Fts3Table *p){
166836 fts3DbExec(pRc, p->db,
166841 if( (*pRc)==SQLITE_OK ) p->bHasStat = 1;
166918 static void fts3DatabasePageSize(int *pRc, Fts3Table *p){
166919 if( *pRc==SQLITE_OK ){
166940 *pRc = rc;
166978 int *pRc, /* IN/OUT: Error code */
166983 if( *pRc==SQLITE_OK ){
166994 if( z==0 ) *pRc = SQLITE_NOMEM;
167052 static char *fts3ReadExprList(Fts3Table *p, const char *zFunc, int *pRc){
167064 fts3Appendf(pRc, &zRet, "docid");
167066 fts3Appendf(pRc, &zRet, ",%s(x.'c%d%q')", zFunction, i, p->azColumn[i]);
167069 fts3Appendf(pRc, &zRet, ", x.%Q", "langid");
167073 fts3Appendf(pRc, &zRet, "rowid");
167075 fts3Appendf(pRc, &zRet, ", x.'%q'", p->azColumn[i]);
167078 fts3Appendf(pRc, &zRet, ", x.%Q", p->zLanguageid);
167081 fts3Appendf(pRc, &zRet, " FROM '%q'.'%q%s' AS x",
167109 static char *fts3WriteExprList(Fts3Table *p, const char *zFunc, int *pRc){
167120 fts3Appendf(pRc, &zRet, "?");
167122 fts3Appendf(pRc, &zRet, ",%s(?)", zFunction);
167125 fts3Appendf(pRc, &zRet, ", ?");
170313 int *pRc /* IN/OUT: Error code */
170315 if( pExpr && SQLITE_OK==*pRc ){
170326 *pRc = rc;
170334 fts3EvalAllocateReaders(pCsr, pExpr->pLeft, pnToken, pnOr, pRc);
170335 fts3EvalAllocateReaders(pCsr, pExpr->pRight, pnToken, pnOr, pRc);
170973 int *pRc /* IN/OUT: Error code */
170975 if( pExpr && SQLITE_OK==*pRc ){
170985 *pRc = fts3EvalPhraseStart(pCsr, 1, pExpr->pPhrase);
170987 fts3EvalStartReaders(pCsr, pExpr->pLeft, pRc);
170988 fts3EvalStartReaders(pCsr, pExpr->pRight, pRc);
171029 int *pRc /* IN/OUT: Error code */
171031 if( *pRc==SQLITE_OK ){
171035 for(i=0; *pRc==SQLITE_OK && i<pPhrase->nToken; i++){
171042 *pRc = sqlite3Fts3MsrOvfl(pCsr, pTC->pToken->pSegcsr, &pTC->nOvfl);
171055 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pLeft, ppTC, ppOr, pRc);
171061 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pRight, ppTC, ppOr, pRc);
171429 int *pRc /* IN/OUT: Error code */
171431 if( *pRc==SQLITE_OK ){
171446 fts3EvalNextRow(pCsr, pRight, pRc);
171452 fts3EvalNextRow(pCsr, pLeft, pRc);
171457 fts3EvalNextRow(pCsr, pLeft, pRc);
171458 fts3EvalNextRow(pCsr, pRight, pRc);
171459 while( !pLeft->bEof && !pRight->bEof && *pRc==SQLITE_OK ){
171463 fts3EvalNextRow(pCsr, pLeft, pRc);
171465 fts3EvalNextRow(pCsr, pRight, pRc);
171474 while( *pRc==SQLITE_OK && pRight->bEof==0 ){
171476 fts3EvalNextRow(pCsr, pRight, pRc);
171481 while( *pRc==SQLITE_OK && pLeft->bEof==0 ){
171483 fts3EvalNextRow(pCsr, pLeft, pRc);
171501 fts3EvalNextRow(pCsr, pLeft, pRc);
171503 fts3EvalNextRow(pCsr, pRight, pRc);
171505 fts3EvalNextRow(pCsr, pLeft, pRc);
171506 fts3EvalNextRow(pCsr, pRight, pRc);
171525 fts3EvalNextRow(pCsr, pRight, pRc);
171526 assert( *pRc!=SQLITE_OK || pRight->bStart );
171529 fts3EvalNextRow(pCsr, pLeft, pRc);
171531 while( !*pRc
171535 fts3EvalNextRow(pCsr, pRight, pRc);
171546 *pRc = fts3EvalPhraseNext(pCsr, pPhrase, &pExpr->bEof);
171569 static int fts3EvalNearTest(Fts3Expr *pExpr, int *pRc){
171592 if( *pRc==SQLITE_OK
171608 *pRc = SQLITE_NOMEM;
171654 int *pRc /* IN/OUT: Error code */
171657 if( *pRc==SQLITE_OK ){
171662 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
171663 && fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
171664 && fts3EvalNearTest(pExpr, pRc)
171700 int bHit1 = fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc);
171701 int bHit2 = fts3EvalTestExpr(pCsr, pExpr->pRight, pRc);
171708 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
171709 && !fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
171723 *pRc = fts3EvalDeferredPhrase(pCsr, pPhrase);
171762 SQLITE_PRIVATE int sqlite3Fts3EvalTestDeferred(Fts3Cursor *pCsr, int *pRc){
171763 int rc = *pRc;
171783 *pRc = rc;
171836 int *pRc
171838 if( pExpr && *pRc==SQLITE_OK ){
171852 *pRc = fts3EvalPhraseStart(pCsr, 0, pPhrase);
171863 fts3EvalRestart(pCsr, pExpr->pLeft, pRc);
171864 fts3EvalRestart(pCsr, pExpr->pRight, pRc);
177059 int *pRc /* OUT: Return code */
177098 *pRc = rc;
180098 static void blobGrowBuffer(Blob *pBlob, int nMin, int *pRc){
180099 if( *pRc==SQLITE_OK && nMin>pBlob->nAlloc ){
180106 *pRc = SQLITE_NOMEM;
180442 int *pRc /* IN/OUT: Error code */
180447 int rc = *pRc; /* Error code */
180456 assert( *pRc || pNode->block.nAlloc==0 );
180457 assert( *pRc || pNode->key.nAlloc==0 );
180518 *pRc = rc;
181202 int *pRc /* IN/OUT: Error code */
181204 blobGrowBuffer(pHint, pHint->n + 2*FTS3_VARINT_MAX, pRc);
181205 if( *pRc==SQLITE_OK ){
181547 int *pRc /* OUT: Return code */
181554 assert( *pRc==SQLITE_OK );
181608 *pRc = rc;
191894 static GeoPoly *geopolyParseJson(const unsigned char *z, int *pRc){
191952 if( pRc ) *pRc = SQLITE_OK;
191960 if( pRc ) *pRc = rc;
191974 int *pRc /* Write error here */
191989 if( pRc ) *pRc = SQLITE_NOMEM;
192005 if( pRc ) *pRc = SQLITE_OK;
192010 if( pRc ) *pRc = SQLITE_NOMEM;
192013 return geopolyParseJson(zJson, pRc);
192015 if( pRc ) *pRc = SQLITE_ERROR;
192298 int *pRc /* Error code here */
192311 p = geopolyFuncParam(context, pPoly, pRc);
192325 if( pRc ) *pRc = SQLITE_OK;
192332 if( pRc ) *pRc = SQLITE_NOMEM;
196194 static char *rbuStrndup(const char *zStr, int *pRc){
196197 if( *pRc==SQLITE_OK ){
196204 *pRc = SQLITE_NOMEM;
203507 static int sessionBufferGrow(SessionBuffer *p, size_t nByte, int *pRc){
203508 if( *pRc==SQLITE_OK && (size_t)(p->nAlloc-p->nBuf)<nByte ){
203517 *pRc = SQLITE_NOMEM;
203523 return (*pRc!=SQLITE_OK);
203534 static void sessionAppendValue(SessionBuffer *p, sqlite3_value *pVal, int *pRc){
203535 int rc = *pRc;
203544 *pRc = rc;
203556 static void sessionAppendByte(SessionBuffer *p, u8 v, int *pRc){
203557 if( 0==sessionBufferGrow(p, 1, pRc) ){
203569 static void sessionAppendVarint(SessionBuffer *p, int v, int *pRc){
203570 if( 0==sessionBufferGrow(p, 9, pRc) ){
203586 int *pRc
203588 if( nBlob>0 && 0==sessionBufferGrow(p, nBlob, pRc) ){
203605 int *pRc
203608 if( 0==sessionBufferGrow(p, nStr, pRc) ){
203625 int *pRc /* IN/OUT: Error code */
203629 sessionAppendStr(p, aBuf, pRc);
203644 int *pRc /* IN/OUT: Error code */
203647 if( 0==sessionBufferGrow(p, nStr, pRc) ){
203670 int *pRc /* IN/OUT: Error code */
203672 if( *pRc==SQLITE_OK ){
203674 sessionAppendByte(p, (u8)eType, pRc);
203685 sessionAppendBlob(p, aBuf, 8, pRc);
203697 sessionAppendVarint(p, nByte, pRc);
203698 sessionAppendBlob(p, z, nByte, pRc);
203700 *pRc = SQLITE_NOMEM;
204014 int *pRc /* IN/OUT: Error code */
204017 sessionAppendByte(pBuf, (bPatchset ? 'P' : 'T'), pRc);
204018 sessionAppendVarint(pBuf, pTab->nCol, pRc);
204019 sessionAppendBlob(pBuf, pTab->abPK, pTab->nCol, pRc);
204020 sessionAppendBlob(pBuf, (u8 *)pTab->zName, (int)strlen(pTab->zName)+1, pRc);
206797 int *pRc /* IN/OUT: error code */
206799 sessionBufferGrow(pBuf, n1+n2, pRc);
206800 if( *pRc==SQLITE_OK ){
206846 int *pRc /* IN/OUT: Return Code */
206848 sessionBufferGrow(pBuf, 2+nRec+nChange, pRc);
206849 if( *pRc==SQLITE_OK ){
208004 static char *sqlite3Fts5Mprintf(int *pRc, const char *zFmt, ...);
208012 #define fts5BufferGrow(pRc,pBuf,nn) ( \
208014 sqlite3Fts5BufferSize((pRc),(pBuf),(nn)+(pBuf)->n) \
208057 static void *sqlite3Fts5MallocZero(int *pRc, sqlite3_int64 nByte);
208058 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn);
210181 int *pRc,
210185 if( *pRc==SQLITE_OK && z ){
210188 if( p->zOut==0 ) *pRc = SQLITE_NOMEM;
210781 static int sqlite3Fts5BufferSize(int *pRc, Fts5Buffer *pBuf, u32 nByte){
210790 *pRc = SQLITE_NOMEM;
210805 static void sqlite3Fts5BufferAppendVarint(int *pRc, Fts5Buffer *pBuf, i64 iVal){
210806 if( fts5BufferGrow(pRc, pBuf, 9) ) return;
210827 int *pRc,
210832 assert_nc( *pRc || nData>=0 );
210834 if( fts5BufferGrow(pRc, pBuf, nData) ) return;
210846 int *pRc,
210851 sqlite3Fts5BufferAppendBlob(pRc, pBuf, nStr+1, (const u8*)zStr);
210864 int *pRc,
210868 if( *pRc==SQLITE_OK ){
210876 *pRc = SQLITE_NOMEM;
210878 sqlite3Fts5BufferAppendString(pRc, pBuf, zTmp);
210884 static char *sqlite3Fts5Mprintf(int *pRc, const char *zFmt, ...){
210886 if( *pRc==SQLITE_OK ){
210892 *pRc = SQLITE_NOMEM;
210921 int *pRc,
210927 sqlite3Fts5BufferAppendBlob(pRc, pBuf, nData, pData);
211019 static void *sqlite3Fts5MallocZero(int *pRc, sqlite3_int64 nByte){
211021 if( *pRc==SQLITE_OK ){
211024 if( nByte>0 ) *pRc = SQLITE_NOMEM;
211040 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn){
211042 if( *pRc==SQLITE_OK ){
211051 *pRc = SQLITE_NOMEM;
211588 int *pRc, /* IN/OUT: Error code */
211598 assert( *pRc==SQLITE_OK );
211603 *pRc = SQLITE_NOMEM;
212727 static int fts5ExprNearIsMatch(int *pRc, Fts5ExprNearset *pNear){
212733 int rc = *pRc;
212747 *pRc = rc;
212811 *pRc = rc;
212830 int *pRc, /* OUT: Error code */
212840 *pRc = rc;
212856 int *pRc /* OUT: Error code */
212873 *pRc = rc;
212883 int *pRc,
212888 int rc = *pRc;
212923 *pRc = rc;
212924 if( i==pNear->nPhrase && (i==1 || fts5ExprNearIsMatch(pRc, pNear)) ){
214103 static Fts5Colset *fts5CloneColset(int *pRc, Fts5Colset *pOrig){
214107 pRet = (Fts5Colset*)sqlite3Fts5MallocZero(pRc, nByte);
216510 static void fts5StructureAddLevel(int *pRc, Fts5Structure **ppStruct){
216511 if( *pRc==SQLITE_OK ){
216525 *pRc = SQLITE_NOMEM;
216535 int *pRc,
216541 if( *pRc==SQLITE_OK ){
216558 *pRc = SQLITE_NOMEM;
218763 int *pRc,
218768 if( *pRc==SQLITE_OK ){
218775 fts5BufferAppendBlob(pRc, pBuf, nSub, pSub);
218902 int *pRc = &pIter->pIndex->rc;
218904 fts5IndexExtractColset(pRc, pColset, a, pSeg->nPos, &pIter->poslist);
218919 static void fts5IterSetOutputCb(int *pRc, Fts5Iter *pIter){
218920 if( *pRc==SQLITE_OK ){
218942 sqlite3Fts5BufferSize(pRc, &pIter->poslist, pConfig->nCol);
221755 static void fts5DebugRowid(int *pRc, Fts5Buffer *pBuf, i64 iKey){
221761 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{averages} ");
221763 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{structure}");
221767 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{%ssegid=%d h=%d pgno=%d}",
221774 int *pRc, /* IN/OUT: error code */
221782 sqlite3Fts5BufferAppendPrintf(pRc, pBuf,
221787 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " {id=%d leaves=%d..%d}",
221791 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "}");
221803 int *pRc, /* IN/OUT: error code */
221812 *pRc = rc;
221816 fts5DebugStructure(pRc, pBuf, p);
221828 int *pRc, /* IN/OUT: error code */
221838 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "%s%d", zSpace, (int)iVal);
221850 static int fts5DecodePoslist(int *pRc, Fts5Buffer *pBuf, const u8 *a, int n){
221855 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " %d", iVal);
221868 static int fts5DecodeDoclist(int *pRc, Fts5Buffer *pBuf, const u8 *a, int n){
221874 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " id=%lld", iDocid);
221880 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " nPos=%d%s", nPos, bDel?"*":"");
221881 iOff += fts5DecodePoslist(pRc, pBuf, &a[iOff], MIN(n-iOff, nPos));
221886 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " id=%lld", iDocid);
221907 int *pRc, /* IN/OUT: Error code */
221930 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " %lld%s", iRowid, zApp);
223759 int *pRc,
223764 int rc = *pRc;
223771 *pRc = rc;
225300 int *pRc, /* IN/OUT: Error code */
225304 if( *pRc==SQLITE_OK ){
225305 *pRc = fts5ExecPrintf(pConfig->db, 0,