Lines Matching refs:pRc

72285 static u8 *pageFindSlot(MemPage *pPg, int nByte, int *pRc){
72317 *pRc = SQLITE_CORRUPT_PAGE(pPg);
72332 *pRc = SQLITE_CORRUPT_PAGE(pPg);
72339 *pRc = SQLITE_CORRUPT_PAGE(pPg);
186376 SQLITE_PRIVATE int sqlite3Fts3EvalTestDeferred(Fts3Cursor *pCsr, int *pRc);
186724 int *pRc, /* Success code */
186731 if( *pRc ) return;
186736 *pRc = SQLITE_NOMEM;
186738 *pRc = sqlite3_exec(db, zSql, 0, 0, 0);
186783 static void fts3DeclareVtab(int *pRc, Fts3Table *p){
186784 if( *pRc==SQLITE_OK ){
186814 *pRc = rc;
186821 SQLITE_PRIVATE void sqlite3Fts3CreateStatTable(int *pRc, Fts3Table *p){
186822 fts3DbExec(pRc, p->db,
186827 if( (*pRc)==SQLITE_OK ) p->bHasStat = 1;
186904 static void fts3DatabasePageSize(int *pRc, Fts3Table *p){
186905 if( *pRc==SQLITE_OK ){
186926 *pRc = rc;
186964 int *pRc, /* IN/OUT: Error code */
186969 if( *pRc==SQLITE_OK ){
186980 if( z==0 ) *pRc = SQLITE_NOMEM;
187038 static char *fts3ReadExprList(Fts3Table *p, const char *zFunc, int *pRc){
187050 fts3Appendf(pRc, &zRet, "docid");
187052 fts3Appendf(pRc, &zRet, ",%s(x.'c%d%q')", zFunction, i, p->azColumn[i]);
187055 fts3Appendf(pRc, &zRet, ", x.%Q", "langid");
187059 fts3Appendf(pRc, &zRet, "rowid");
187061 fts3Appendf(pRc, &zRet, ", x.'%q'", p->azColumn[i]);
187064 fts3Appendf(pRc, &zRet, ", x.%Q", p->zLanguageid);
187067 fts3Appendf(pRc, &zRet, " FROM '%q'.'%q%s' AS x",
187095 static char *fts3WriteExprList(Fts3Table *p, const char *zFunc, int *pRc){
187106 fts3Appendf(pRc, &zRet, "?");
187108 fts3Appendf(pRc, &zRet, ",%s(?)", zFunction);
187111 fts3Appendf(pRc, &zRet, ", ?");
190375 int *pRc /* IN/OUT: Error code */
190377 if( pExpr && SQLITE_OK==*pRc ){
190388 *pRc = rc;
190396 fts3EvalAllocateReaders(pCsr, pExpr->pLeft, pnToken, pnOr, pRc);
190397 fts3EvalAllocateReaders(pCsr, pExpr->pRight, pnToken, pnOr, pRc);
191038 int *pRc /* IN/OUT: Error code */
191040 if( pExpr && SQLITE_OK==*pRc ){
191050 *pRc = fts3EvalPhraseStart(pCsr, 1, pExpr->pPhrase);
191052 fts3EvalStartReaders(pCsr, pExpr->pLeft, pRc);
191053 fts3EvalStartReaders(pCsr, pExpr->pRight, pRc);
191094 int *pRc /* IN/OUT: Error code */
191096 if( *pRc==SQLITE_OK ){
191100 for(i=0; *pRc==SQLITE_OK && i<pPhrase->nToken; i++){
191107 *pRc = sqlite3Fts3MsrOvfl(pCsr, pTC->pToken->pSegcsr, &pTC->nOvfl);
191120 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pLeft, ppTC, ppOr, pRc);
191126 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pRight, ppTC, ppOr, pRc);
191495 int *pRc /* IN/OUT: Error code */
191497 if( *pRc==SQLITE_OK && pExpr->bEof==0 ){
191511 fts3EvalNextRow(pCsr, pRight, pRc);
191517 fts3EvalNextRow(pCsr, pLeft, pRc);
191522 fts3EvalNextRow(pCsr, pLeft, pRc);
191523 fts3EvalNextRow(pCsr, pRight, pRc);
191524 while( !pLeft->bEof && !pRight->bEof && *pRc==SQLITE_OK ){
191528 fts3EvalNextRow(pCsr, pLeft, pRc);
191530 fts3EvalNextRow(pCsr, pRight, pRc);
191539 while( *pRc==SQLITE_OK && pRight->bEof==0 ){
191541 fts3EvalNextRow(pCsr, pRight, pRc);
191546 while( *pRc==SQLITE_OK && pLeft->bEof==0 ){
191548 fts3EvalNextRow(pCsr, pLeft, pRc);
191566 fts3EvalNextRow(pCsr, pLeft, pRc);
191568 fts3EvalNextRow(pCsr, pRight, pRc);
191570 fts3EvalNextRow(pCsr, pLeft, pRc);
191571 fts3EvalNextRow(pCsr, pRight, pRc);
191590 fts3EvalNextRow(pCsr, pRight, pRc);
191591 assert( *pRc!=SQLITE_OK || pRight->bStart );
191594 fts3EvalNextRow(pCsr, pLeft, pRc);
191596 while( !*pRc
191600 fts3EvalNextRow(pCsr, pRight, pRc);
191611 *pRc = fts3EvalPhraseNext(pCsr, pPhrase, &pExpr->bEof);
191634 static int fts3EvalNearTest(Fts3Expr *pExpr, int *pRc){
191657 if( *pRc==SQLITE_OK
191673 *pRc = SQLITE_NOMEM;
191719 int *pRc /* IN/OUT: Error code */
191722 if( *pRc==SQLITE_OK ){
191727 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
191728 && fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
191729 && fts3EvalNearTest(pExpr, pRc)
191765 int bHit1 = fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc);
191766 int bHit2 = fts3EvalTestExpr(pCsr, pExpr->pRight, pRc);
191773 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
191774 && !fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
191787 *pRc = fts3EvalDeferredPhrase(pCsr, pPhrase);
191829 SQLITE_PRIVATE int sqlite3Fts3EvalTestDeferred(Fts3Cursor *pCsr, int *pRc){
191830 int rc = *pRc;
191850 *pRc = rc;
191903 int *pRc
191905 if( pExpr && *pRc==SQLITE_OK ){
191919 *pRc = fts3EvalPhraseStart(pCsr, 0, pPhrase);
191930 fts3EvalRestart(pCsr, pExpr->pLeft, pRc);
191931 fts3EvalRestart(pCsr, pExpr->pRight, pRc);
197164 int *pRc /* OUT: Return code */
197203 *pRc = rc;
200228 static void blobGrowBuffer(Blob *pBlob, int nMin, int *pRc){
200229 if( *pRc==SQLITE_OK && nMin>pBlob->nAlloc ){
200236 *pRc = SQLITE_NOMEM;
200581 int *pRc /* IN/OUT: Error code */
200586 int rc = *pRc; /* Error code */
200595 assert( *pRc || pNode->block.nAlloc==0 );
200596 assert( *pRc || pNode->key.nAlloc==0 );
200657 *pRc = rc;
201349 int *pRc /* IN/OUT: Error code */
201351 blobGrowBuffer(pHint, pHint->n + 2*FTS3_VARINT_MAX, pRc);
201352 if( *pRc==SQLITE_OK ){
201694 int *pRc /* OUT: Return code */
201701 if( *pRc ) return 0;
201755 *pRc = rc;
214822 static GeoPoly *geopolyParseJson(const unsigned char *z, int *pRc){
214880 if( pRc ) *pRc = SQLITE_OK;
214888 if( pRc ) *pRc = rc;
214902 int *pRc /* Write error here */
214922 if( pRc ) *pRc = SQLITE_NOMEM;
214938 if( pRc ) *pRc = SQLITE_OK;
214943 if( pRc ) *pRc = SQLITE_NOMEM;
214946 return geopolyParseJson(zJson, pRc);
214948 if( pRc ) *pRc = SQLITE_ERROR;
215237 int *pRc /* Error code here */
215250 p = geopolyFuncParam(context, pPoly, pRc);
215264 if( pRc ) *pRc = SQLITE_OK;
215271 if( pRc ) *pRc = SQLITE_NOMEM;
219232 static char *rbuStrndup(const char *zStr, int *pRc){
219235 if( *pRc==SQLITE_OK ){
219242 *pRc = SQLITE_NOMEM;
226167 int *pRc, /* IN/OUT: Error code */
226199 *pRc = SQLITE_NOMEM;
226264 static int sessionBufferGrow(SessionBuffer *p, i64 nByte, int *pRc){
226267 if( *pRc==SQLITE_OK && nReq>p->nAlloc ){
226283 *pRc = SQLITE_NOMEM;
226290 *pRc = SQLITE_NOMEM;
226296 return (*pRc!=SQLITE_OK);
226311 int *pRc
226314 if( 0==sessionBufferGrow(p, nStr+1, pRc) ){
226327 int *pRc,
226331 if( *pRc==SQLITE_OK ){
226337 *pRc = SQLITE_NOMEM;
226339 sessionAppendStr(p, zApp, pRc);
227315 static void sessionAppendValue(SessionBuffer *p, sqlite3_value *pVal, int *pRc){
227316 int rc = *pRc;
227325 *pRc = rc;
227337 static void sessionAppendByte(SessionBuffer *p, u8 v, int *pRc){
227338 if( 0==sessionBufferGrow(p, 1, pRc) ){
227350 static void sessionAppendVarint(SessionBuffer *p, int v, int *pRc){
227351 if( 0==sessionBufferGrow(p, 9, pRc) ){
227367 int *pRc
227369 if( nBlob>0 && 0==sessionBufferGrow(p, nBlob, pRc) ){
227386 int *pRc /* IN/OUT: Error code */
227390 sessionAppendStr(p, aBuf, pRc);
227405 int *pRc /* IN/OUT: Error code */
227408 if( 0==sessionBufferGrow(p, nStr, pRc) ){
227432 int *pRc /* IN/OUT: Error code */
227434 if( *pRc==SQLITE_OK ){
227436 sessionAppendByte(p, (u8)eType, pRc);
227447 sessionAppendBlob(p, aBuf, 8, pRc);
227459 sessionAppendVarint(p, nByte, pRc);
227460 sessionAppendBlob(p, z, nByte, pRc);
227462 *pRc = SQLITE_NOMEM;
227830 int *pRc /* IN/OUT: Error code */
227833 sessionAppendByte(pBuf, (bPatchset ? 'P' : 'T'), pRc);
227834 sessionAppendVarint(pBuf, pTab->nCol, pRc);
227835 sessionAppendBlob(pBuf, pTab->abPK, pTab->nCol, pRc);
227836 sessionAppendBlob(pBuf, (u8 *)pTab->zName, (int)strlen(pTab->zName)+1, pRc);
231059 int *pRc /* IN/OUT: error code */
231061 sessionBufferGrow(pBuf, n1+n2, pRc);
231062 if( *pRc==SQLITE_OK ){
231108 int *pRc /* IN/OUT: Return Code */
231110 sessionBufferGrow(pBuf, 2+nRec+nChange, pRc);
231111 if( *pRc==SQLITE_OK ){
232344 static char *sqlite3Fts5Mprintf(int *pRc, const char *zFmt, ...);
232352 #define fts5BufferGrow(pRc,pBuf,nn) ( \
232354 sqlite3Fts5BufferSize((pRc),(pBuf),(nn)+(pBuf)->n) \
232397 static void *sqlite3Fts5MallocZero(int *pRc, sqlite3_int64 nByte);
232398 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn);
234602 int *pRc,
234606 if( *pRc==SQLITE_OK && z ){
234609 if( p->zOut==0 ) *pRc = SQLITE_NOMEM;
235235 static int sqlite3Fts5BufferSize(int *pRc, Fts5Buffer *pBuf, u32 nByte){
235244 *pRc = SQLITE_NOMEM;
235259 static void sqlite3Fts5BufferAppendVarint(int *pRc, Fts5Buffer *pBuf, i64 iVal){
235260 if( fts5BufferGrow(pRc, pBuf, 9) ) return;
235281 int *pRc,
235287 if( fts5BufferGrow(pRc, pBuf, nData) ) return;
235300 int *pRc,
235305 sqlite3Fts5BufferAppendBlob(pRc, pBuf, nStr+1, (const u8*)zStr);
235318 int *pRc,
235322 if( *pRc==SQLITE_OK ){
235330 *pRc = SQLITE_NOMEM;
235332 sqlite3Fts5BufferAppendString(pRc, pBuf, zTmp);
235338 static char *sqlite3Fts5Mprintf(int *pRc, const char *zFmt, ...){
235340 if( *pRc==SQLITE_OK ){
235346 *pRc = SQLITE_NOMEM;
235375 int *pRc,
235381 sqlite3Fts5BufferAppendBlob(pRc, pBuf, nData, pData);
235481 static void *sqlite3Fts5MallocZero(int *pRc, sqlite3_int64 nByte){
235483 if( *pRc==SQLITE_OK ){
235486 if( nByte>0 ) *pRc = SQLITE_NOMEM;
235502 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn){
235504 if( *pRc==SQLITE_OK ){
235513 *pRc = SQLITE_NOMEM;
236070 int *pRc, /* IN/OUT: Error code */
236080 assert( *pRc==SQLITE_OK );
236085 *pRc = SQLITE_NOMEM;
237405 static int fts5ExprNearIsMatch(int *pRc, Fts5ExprNearset *pNear){
237411 int rc = *pRc;
237425 *pRc = rc;
237489 *pRc = rc;
237508 int *pRc, /* OUT: Error code */
237518 *pRc = rc;
237534 int *pRc /* OUT: Error code */
237551 *pRc = rc;
237561 int *pRc,
237566 int rc = *pRc;
237601 *pRc = rc;
237602 if( i==pNear->nPhrase && (i==1 || fts5ExprNearIsMatch(pRc, pNear)) ){
238805 static Fts5Colset *fts5CloneColset(int *pRc, Fts5Colset *pOrig){
238809 pRet = (Fts5Colset*)sqlite3Fts5MallocZero(pRc, nByte);
241542 static void fts5StructureMakeWritable(int *pRc, Fts5Structure **pp){
241544 if( *pRc==SQLITE_OK && p->nRef>1 ){
241547 pNew = (Fts5Structure*)sqlite3Fts5MallocZero(pRc, nByte);
241555 pLvl->aSeg = (Fts5StructureSegment*)sqlite3Fts5MallocZero(pRc, nByte);
241696 static void fts5StructureAddLevel(int *pRc, Fts5Structure **ppStruct){
241697 fts5StructureMakeWritable(pRc, ppStruct);
241698 assert( (ppStruct!=0 && (*ppStruct)!=0) || (*pRc)!=SQLITE_OK );
241699 if( *pRc==SQLITE_OK ){
241713 *pRc = SQLITE_NOMEM;
241723 int *pRc,
241729 if( *pRc==SQLITE_OK ){
241746 *pRc = SQLITE_NOMEM;
244145 int *pRc,
244150 if( *pRc==SQLITE_OK ){
244157 if( pColset->nCol>1 && sqlite3Fts5BufferSize(pRc, &pIter->poslist, nPos) ){
244318 int *pRc = &pIter->pIndex->rc;
244320 fts5IndexExtractColset(pRc, pColset, a, pSeg->nPos, pIter);
244332 static void fts5IterSetOutputCb(int *pRc, Fts5Iter *pIter){
244333 assert( pIter!=0 || (*pRc)!=SQLITE_OK );
244334 if( *pRc==SQLITE_OK ){
244356 sqlite3Fts5BufferSize(pRc, &pIter->poslist, pConfig->nCol);
248805 static void fts5DebugRowid(int *pRc, Fts5Buffer *pBuf, i64 iKey){
248811 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{averages} ");
248813 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{structure}");
248817 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{%s%ssegid=%d h=%d pgno=%d}",
248828 int *pRc, /* IN/OUT: error code */
248836 sqlite3Fts5BufferAppendPrintf(pRc, pBuf,
248841 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " {id=%d leaves=%d..%d",
248845 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " origin=%lld..%lld",
248849 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "}");
248851 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "}");
248865 int *pRc, /* IN/OUT: error code */
248874 *pRc = rc;
248878 fts5DebugStructure(pRc, pBuf, p);
248892 int *pRc, /* IN/OUT: error code */
248902 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "%s%d", zSpace, (int)iVal);
248916 static int fts5DecodePoslist(int *pRc, Fts5Buffer *pBuf, const u8 *a, int n){
248921 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " %d", iVal);
248936 static int fts5DecodeDoclist(int *pRc, Fts5Buffer *pBuf, const u8 *a, int n){
248942 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " id=%lld", iDocid);
248948 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " nPos=%d%s", nPos, bDel?"*":"");
248949 iOff += fts5DecodePoslist(pRc, pBuf, &a[iOff], MIN(n-iOff, nPos));
248954 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " id=%lld", iDocid);
248977 int *pRc, /* IN/OUT: Error code */
249000 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " %lld%s", iRowid, zApp);
249006 static void fts5BufferAppendTerm(int *pRc, Fts5Buffer *pBuf, Fts5Buffer *pTerm){
249008 fts5BufferGrow(pRc, pBuf, pTerm->n*2 + 1);
249009 if( *pRc==SQLITE_OK ){
251221 int *pRc,
251226 int rc = *pRc;
251233 *pRc = rc;
252936 int *pRc, /* IN/OUT: Error code */
252940 if( *pRc==SQLITE_OK ){
252941 *pRc = fts5ExecPrintf(pConfig->db, 0,