Home | History | Annotate | Download | only in dist

Lines Matching refs:pRc

20105 ** return this value and set *pRc to SQLITE_OK. 
20107 ** Or, if an error does occur, set *pRc to SQLITE_ERROR. The returned value
20113 int *pRc /* OUT: Error code. SQLITE_OK or ERROR */
20146 *pRc = SQLITE_ERROR;
20162 *pRc = SQLITE_OK;
61366 ** If *pRC is initially non-zero (non-SQLITE_OK) then this routine is
61368 ** into *pRC.
61370 static void ptrmapPut(BtShared *pBt, Pgno key, u8 eType, Pgno parent, int *pRC){
61377 if( *pRC ) return;
61385 *pRC = SQLITE_CORRUPT_BKPT;
61391 *pRC = rc;
61396 *pRC = SQLITE_CORRUPT_BKPT;
61404 *pRC= rc = sqlite3PagerWrite(pDbPage);
61753 static void ptrmapPutOvflPtr(MemPage *pPage, u8 *pCell, int *pRC){
61755 if( *pRC ) return;
61760 ptrmapPut(pPage->pBt, ovfl, PTRMAP_OVERFLOW1, pPage->pgno, pRC);
61913 ** detected then *pRc is set to SQLITE_CORRUPT and NULL is returned.
61919 static u8 *pageFindSlot(MemPage *pPg, int nByte, int *pRc){
61938 *pRc = SQLITE_CORRUPT_PAGE(pPg);
61961 *pRc = SQLITE_CORRUPT_PAGE(pPg);
66588 static void freePage(MemPage *pPage, int *pRC){
66589 if( (*pRC)==SQLITE_OK ){
66590 *pRC = freePage2(pPage->pBt, pPage, pPage->pgno);
66870 static void dropCell(MemPage *pPage, int idx, int sz, int *pRC){
66877 if( *pRC ) return;
66889 *pRC = SQLITE_CORRUPT_BKPT;
66894 *pRC = rc;
66923 ** *pRC must be SQLITE_OK when this routine is called.
66932 int *pRC /* Read and write return code from here */
66939 assert( *pRC==SQLITE_OK );
66978 *pRC = rc;
66985 if( rc ){ *pRC = rc; return; }
67008 ptrmapPutOvflPtr(pPage, pCell, pRC);
67523 static void copyNodeContent(MemPage *pFrom, MemPage *pTo, int *pRC){
67524 if( (*pRC)==SQLITE_OK ){
67551 *pRC = rc;
67559 *pRC = setChildPtrmaps(pTo);
149029 SQLITE_PRIVATE int sqlite3Fts3EvalTestDeferred(Fts3Cursor *pCsr, int *pRc);
149326 ** into *pRc.
149328 ** If *pRc is initially non-zero then this routine is a no-op.
149331 int *pRc, /* Success code */
149338 if( *pRc ) return;
149343 *pRc = SQLITE_NOMEM;
149345 *pRc = sqlite3_exec(db, zSql, 0, 0, 0);
149381 ** If *pRc is non-zero when this function is called, it is a no-op.
149382 ** Otherwise, if an error occurs, an SQLite error code is stored in *pRc
149385 static void fts3DeclareVtab(int *pRc, Fts3Table *p){
149386 if( *pRc==SQLITE_OK ){
149415 *pRc = rc;
149422 SQLITE_PRIVATE void sqlite3Fts3CreateStatTable(int *pRc, Fts3Table *p){
149423 fts3DbExec(pRc, p->db,
149428 if( (*pRc)==SQLITE_OK ) p->bHasStat = 1;
149501 ** If *pRc is non-zero when this function is called, it is a no-op.
149502 ** Otherwise, if an error occurs, an SQLite error code is stored in *pRc
149505 static void fts3DatabasePageSize(int *pRc, Fts3Table *p){
149506 if( *pRc==SQLITE_OK ){
149527 *pRc = rc;
149565 int *pRc, /* IN/OUT: Error code */
149570 if( *pRc==SQLITE_OK ){
149581 if( z==0 ) *pRc = SQLITE_NOMEM;
149634 ** If *pRc is not SQLITE_OK when this function is called, it is a no-op (and
149636 ** by this function, NULL is returned and *pRc is set to SQLITE_NOMEM. If
149637 ** no error occurs, *pRc is left unmodified.
149639 static char *fts3ReadExprList(Fts3Table *p, const char *zFunc, int *pRc){
149651 fts3Appendf(pRc, &zRet, "docid");
149653 fts3Appendf(pRc, &zRet, ",%s(x.'c%d%q')", zFunction, i, p->azColumn[i]);
149656 fts3Appendf(pRc, &zRet, ", x.%Q", "langid");
149660 fts3Appendf(pRc, &zRet, "rowid");
149662 fts3Appendf(pRc, &zRet, ", x.'%q'", p->azColumn[i]);
149665 fts3Appendf(pRc, &zRet, ", x.%Q", p->zLanguageid);
149668 fts3Appendf(pRc, &zRet, " FROM '%q'.'%q%s' AS x",
149691 ** If *pRc is not SQLITE_OK when this function is called, it is a no-op (and
149693 ** by this function, NULL is returned and *pRc is set to SQLITE_NOMEM. If
149694 ** no error occurs, *pRc is left unmodified.
149696 static char *fts3WriteExprList(Fts3Table *p, const char *zFunc, int *pRc){
149707 fts3Appendf(pRc, &zRet, "?");
149709 fts3Appendf(pRc, &zRet, ",%s(?)", zFunction);
149712 fts3Appendf(pRc, &zRet, ", ?");
152835 int *pRc /* IN/OUT: Error code */
152837 if( pExpr && SQLITE_OK==*pRc ){
152848 *pRc = rc;
152856 fts3EvalAllocateReaders(pCsr, pExpr->pLeft, pnToken, pnOr, pRc);
152857 fts3EvalAllocateReaders(pCsr, pExpr->pRight, pnToken, pnOr, pRc);
153474 ** If *pRc is not SQLITE_OK when this function is called, it is a no-op.
153485 ** If an error occurs within this function, *pRc is set to an SQLite error
153491 int *pRc /* IN/OUT: Error code */
153493 if( pExpr && SQLITE_OK==*pRc ){
153503 *pRc = fts3EvalPhraseStart(pCsr, 1, pExpr->pPhrase);
153505 fts3EvalStartReaders(pCsr, pExpr->pLeft, pRc);
153506 fts3EvalStartReaders(pCsr, pExpr->pRight, pRc);
153537 ** If *pRc is not SQLITE_OK when this function is called, it is a no-op.
153538 ** Otherwise, if an error occurs during execution, *pRc is set to an
153547 int *pRc /* IN/OUT: Error code */
153549 if( *pRc==SQLITE_OK ){
153553 for(i=0; *pRc==SQLITE_OK && i<pPhrase->nToken; i++){
153560 *pRc = sqlite3Fts3MsrOvfl(pCsr, pTC->pToken->pSegcsr, &pTC->nOvfl);
153573 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pLeft, ppTC, ppOr, pRc);
153579 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pRight, ppTC, ppOr, pRc);
153903 ** This function is a no-op if *pRc is other than SQLITE_OK when it is called.
153909 ** If an error occurs, *pRc is set to an SQLite error code. Otherwise, if
153946 int *pRc /* IN/OUT: Error code */
153948 if( *pRc==SQLITE_OK ){
153963 fts3EvalNextRow(pCsr, pRight, pRc);
153969 fts3EvalNextRow(pCsr, pLeft, pRc);
153974 fts3EvalNextRow(pCsr, pLeft, pRc);
153975 fts3EvalNextRow(pCsr, pRight, pRc);
153976 while( !pLeft->bEof && !pRight->bEof && *pRc==SQLITE_OK ){
153980 fts3EvalNextRow(pCsr, pLeft, pRc);
153982 fts3EvalNextRow(pCsr, pRight, pRc);
153991 while( *pRc==SQLITE_OK && pRight->bEof==0 ){
153993 fts3EvalNextRow(pCsr, pRight, pRc);
153998 while( *pRc==SQLITE_OK && pLeft->bEof==0 ){
154000 fts3EvalNextRow(pCsr, pLeft, pRc);
154017 fts3EvalNextRow(pCsr, pLeft, pRc);
154019 fts3EvalNextRow(pCsr, pRight, pRc);
154021 fts3EvalNextRow(pCsr, pLeft, pRc);
154022 fts3EvalNextRow(pCsr, pRight, pRc);
154041 fts3EvalNextRow(pCsr, pRight, pRc);
154042 assert( *pRc!=SQLITE_OK || pRight->bStart );
154045 fts3EvalNextRow(pCsr, pLeft, pRc);
154047 while( !*pRc
154051 fts3EvalNextRow(pCsr, pRight, pRc);
154062 *pRc = fts3EvalPhraseNext(pCsr, pPhrase, &pExpr->bEof);
154071 ** If *pRc is not SQLITE_OK, or if pExpr is not the root node of a NEAR
154085 static int fts3EvalNearTest(Fts3Expr *pExpr, int *pRc){
154108 if( *pRc==SQLITE_OK
154124 *pRc = SQLITE_NOMEM;
154162 ** If *pRc is not SQLITE_OK when this function is called, it is a no-op.
154163 ** If an error occurs during execution of this function, *pRc is set to
154170 int *pRc /* IN/OUT: Error code */
154173 if( *pRc==SQLITE_OK ){
154178 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
154179 && fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
154180 && fts3EvalNearTest(pExpr, pRc)
154216 int bHit1 = fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc);
154217 int bHit2 = fts3EvalTestExpr(pCsr, pExpr->pRight, pRc);
154224 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
154225 && !fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
154239 *pRc = fts3EvalDeferredPhrase(pCsr, pPhrase);
154265 ** If *pRc is not SQLITE_OK when this function is called, it immediately
154270 ** 1. *pRc is SQLITE_OK when this function returns, and
154278 SQLITE_PRIVATE int sqlite3Fts3EvalTestDeferred(Fts3Cursor *pCsr, int *pRc){
154279 int rc = *pRc;
154299 *pRc = rc;
154345 ** If *pRc is other than SQLITE_OK when this function is called, it is
154346 ** a no-op. If an error occurs within this function, *pRc is set to an
154352 int *pRc
154354 if( pExpr && *pRc==SQLITE_OK ){
154368 *pRc = fts3EvalPhraseStart(pCsr, 0, pPhrase);
154379 fts3EvalRestart(pCsr, pExpr->pLeft, pRc);
154380 fts3EvalRestart(pCsr, pExpr->pRight, pRc);
159392 int *pRC, /* Result code */
159399 if( *pRC ) return;
159405 *pRC = rc;
159581 ** If an OOM error occurs, *pRc is set to SQLITE_NOMEM before returning.
159590 int *pRc /* OUT: Return code */
159629 *pRc = rc;
159962 int *pRC, /* Result code */
159972 if( *pRC ) return;
159990 *pRC = rc;
159999 *pRC = rc;
162235 int *pRC, /* Result code */
162244 if( *pRC ) return;
162247 *pRC = SQLITE_NOMEM;
162254 *pRC = rc;
162260 *pRC = sqlite3_reset(pStmt);
162279 int *pRC, /* The result code */
162294 if( *pRC ) return;
162297 *pRC = SQLITE_NOMEM;
162304 *pRC = rc;
162318 *pRC = rc;
162339 *pRC = rc;
162345 *pRC = sqlite3_reset(pStmt);
162582 ** If *pRc is not SQLITE_OK when this function is called, it is a no-op.
162586 ** If an OOM error occurs, set *pRc to SQLITE_NOMEM and leave pBlob->a
162590 static void blobGrowBuffer(Blob *pBlob, int nMin, int *pRc){
162591 if( *pRc==SQLITE_OK && nMin>pBlob->nAlloc ){
162598 *pRc = SQLITE_NOMEM;
162916 ** If *pRc is not SQLITE_OK when this function is called, then no attempt
162920 ** Otherwise, if *pRc is initially SQLITE_OK and an error occurs while
162921 ** flushing buffers to disk, *pRc is set to an SQLite error code before
162927 int *pRc /* IN/OUT: Error code */
162932 int rc = *pRc; /* Error code */
162941 assert( *pRc || pNode->block.nAlloc==0 );
162942 assert( *pRc || pNode->key.nAlloc==0 );
163003 *pRc = rc;
163654 ** If *pRc is not SQLITE_OK when this function is called, it is a no-op.
163659 ** If successful, leave *pRc set to SQLITE_OK and return. If an error occurs,
163660 ** set *pRc to an SQLite error code before returning.
163666 int *pRc /* IN/OUT: Error code */
163668 blobGrowBuffer(pHint, pHint->n + 2*FTS3_VARINT_MAX, pRc);
163669 if( *pRc==SQLITE_OK ){
163978 ** If successful, the checksum value is returned and *pRc set to SQLITE_OK.
163979 ** Otherwise, if an error occurs, *pRc is set to an SQLite error code. The
163986 int *pRc /* OUT: Return code */
163993 assert( *pRc==SQLITE_OK );
164043 *pRc = rc;
168377 static RtreeNode *rtreeNodeOfFirstSearchPoint(RtreeCursor *pCur, int *pRC){
168383 assert( pRC!=0 );
168385 *pRC = nodeAcquire(RTREE_OF_CURSOR(pCur), id, 0, &pCur->aNode[ii]);
173794 ** output variable (*pRc) is set to SQLITE_NOMEM before returning. Otherwise,
173795 ** if the allocation succeeds, (*pRc) is left unchanged.
173797 static char *rbuStrndup(const char *zStr, int *pRc){
173800 assert( *pRc==SQLITE_OK );
173807 *pRc = SQLITE_NOMEM;
180513 ** set *pRc to SQLITE_NOMEM and return non-zero.
180515 static int sessionBufferGrow(SessionBuffer *p, int nByte, int *pRc){
180516 if( *pRc==SQLITE_OK && p->nAlloc-p->nBuf<nByte ){
180525 *pRc = SQLITE_NOMEM;
180531 return (*pRc!=SQLITE_OK);
180538 ** This function is a no-op if *pRc is non-zero when it is called.
180539 ** Otherwise, if an error occurs, *pRc is set to an SQLite error code
180542 static void sessionAppendValue(SessionBuffer *p, sqlite3_value *pVal, int *pRc){
180543 int rc = *pRc;
180552 *pRc = rc;
180558 ** This function is a no-op if *pRc is other than SQLITE_OK when it is
180561 ** If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before
180564 static void sessionAppendByte(SessionBuffer *p, u8 v, int *pRc){
180565 if( 0==sessionBufferGrow(p, 1, pRc) ){
180571 ** This function is a no-op if *pRc is other than SQLITE_OK when it is
180574 ** If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before
180577 static void sessionAppendVarint(SessionBuffer *p, int v, int *pRc){
180578 if( 0==sessionBufferGrow(p, 9, pRc) ){
180584 ** This function is a no-op if *pRc is other than SQLITE_OK when it is
180587 ** If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before
180594 int *pRc
180596 if( nBlob>0 && 0==sessionBufferGrow(p, nBlob, pRc) ){
180603 ** This function is a no-op if *pRc is other than SQLITE_OK when it is
180607 ** If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before
180613 int *pRc
180616 if( 0==sessionBufferGrow(p, nStr, pRc) ){
180623 ** This function is a no-op if *pRc is other than SQLITE_OK when it is
180627 ** If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before
180633 int *pRc /* IN/OUT: Error code */
180637 sessionAppendStr(p, aBuf, pRc);
180641 ** This function is a no-op if *pRc is other than SQLITE_OK when it is
180646 ** If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before
180652 int *pRc /* IN/OUT: Error code */
180655 if( 0==sessionBufferGrow(p, nStr, pRc) ){
180669 ** This function is a no-op if *pRc is other than SQLITE_OK when it is
180678 int *pRc /* IN/OUT: Error code */
180680 if( *pRc==SQLITE_OK ){
180682 sessionAppendByte(p, (u8)eType, pRc);
180693 sessionAppendBlob(p, aBuf, 8, pRc);
180705 sessionAppendVarint(p, nByte, pRc
180706 sessionAppendBlob(p, z, nByte, pRc);
180708 *pRc = SQLITE_NOMEM;
181012 ** This function is a no-op if *pRc is set to other than SQLITE_OK when it
181014 ** changeset format) to buffer *pBuf. If an error occurs, set *pRc to an
181021 int *pRc /* IN/OUT: Error code */
181024 sessionAppendByte(pBuf, (bPatchset ? 'P' : 'T'), pRc);
181025 sessionAppendVarint(pBuf, pTab->nCol, pRc);
181026 sessionAppendBlob(pBuf, pTab->abPK, pTab->nCol, pRc);
181027 sessionAppendBlob(pBuf, (u8 *)pTab->zName, (int)strlen(pTab->zName)+1, pRc);
186818 static char *sqlite3Fts5Mprintf(int *pRc, const char *zFmt, ...);
186826 #define fts5BufferGrow(pRc,pBuf,nn) ( \
186828 sqlite3Fts5BufferSize((pRc),(pBuf),(nn)+(pBuf)->n) \
186871 static void *sqlite3Fts5MallocZero(int *pRc, int nByte);
186872 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn);
188891 ** If *pRc is set to any value other than SQLITE_OK when this function is
188893 ** *pRc is set to an error code before returning.
188896 int *pRc,
188900 if( *pRc==SQLITE_OK ){
188903 if( p->zOut==0 ) *pRc = SQLITE_NOMEM;
189494 static int sqlite3Fts5BufferSize(int *pRc, Fts5Buffer *pBuf, u32 nByte){
189503 *pRc = SQLITE_NOMEM;
189518 static void sqlite3Fts5BufferAppendVarint(int *pRc, Fts5Buffer *pBuf, i64 iVal){
189519 if( fts5BufferGrow(pRc, pBuf, 9) ) return;
189540 int *pRc,
189545 assert_nc( *pRc || nData>=0 );
189547 if( fts5BufferGrow(pRc, pBuf, nData) ) return;
189559 int *pRc,
189564 sqlite3Fts5BufferAppendBlob(pRc, pBuf, nStr+1, (const u8*)zStr);
189577 int *pRc,
189581 if( *pRc==SQLITE_OK ){
189589 *pRc = SQLITE_NOMEM;
189591 sqlite3Fts5BufferAppendString(pRc, pBuf, zTmp);
189597 static char *sqlite3Fts5Mprintf(int *pRc, const char *zFmt, ...){
189599 if( *pRc==SQLITE_OK ){
189605 *pRc = SQLITE_NOMEM;
189634 int *pRc,
189640 sqlite3Fts5BufferAppendBlob(pRc, pBuf, nData, pData);
189723 static void *sqlite3Fts5MallocZero(int *pRc, int nByte){
189725 if( *pRc==SQLITE_OK ){
189728 if( nByte>0 ) *pRc = SQLITE_NOMEM;
189744 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn){
189746 if( *pRc==SQLITE_OK ){
189755 *pRc = SQLITE_NOMEM;
190286 ** If *pRc is other than SQLITE_OK when this function is called, it is
190288 ** function, *pRc is set to SQLITE_NOMEM before returning. *pRc is *not*
190292 int *pRc, /* IN/OUT: Error code */
190302 assert( *pRc==SQLITE_OK );
190307 *pRc = SQLITE_NOMEM;
191384 ** If in/out parameter (*pRc) is set to other than SQLITE_OK when this
191386 ** occurs within this function (*pRc) is set accordingly before returning.
191393 static int fts5ExprNearIsMatch(int *pRc, Fts5ExprNearset *pNear){
191399 int rc = *pRc;
191413 *pRc = rc;
191477 *pRc = rc;
191489 ** an error occurs, set *pRc to an error code. If either *pbEof or *pRc
191496 int *pRc, /* OUT: Error code */
191506 *pRc = rc;
191522 int *pRc /* OUT: Error code */
191539 *pRc = rc;
191549 int *pRc,
191554 int rc = *pRc;
191589 *pRc = rc;
191590 if( i==pNear->nPhrase && (i==1 || fts5ExprNearIsMatch(pRc, pNear)) ){
192758 ** If argument pOrig is NULL, or if (*pRc) is set to anything other than
192763 ** fails, (*pRc) is set to SQLITE_NOMEM and NULL is returned.
192765 static Fts5Colset *fts5CloneColset(int *pRc, Fts5Colset *pOrig){
192769 pRet = (Fts5Colset*)sqlite3Fts5MallocZero(pRc, nByte);
195139 static void fts5StructureAddLevel(int *pRc, Fts5Structure **ppStruct){
195140 if( *pRc==SQLITE_OK ){
195154 *pRc = SQLITE_NOMEM;
195164 int *pRc,
195170 if( *pRc==SQLITE_OK ){
195187 *pRc = SQLITE_NOMEM;
197377 int *pRc,
197382 if( *pRc==SQLITE_OK ){
197389 fts5BufferAppendBlob(pRc, pBuf, nSub, pSub);
197516 int *pRc = &pIter->pIndex->rc;
197518 fts5IndexExtractColset(pRc, pColset, a, pSeg->nPos, &pIter->poslist);
197533 static void fts5IterSetOutputCb(int *pRc, Fts5Iter *pIter){
197534 if( *pRc==SQLITE_OK ){
197556 sqlite3Fts5BufferSize(pRc, &pIter->poslist, pConfig->nCol);
200280 static void fts5DebugRowid(int *pRc, Fts5Buffer *pBuf, i64 iKey){
200286 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{averages} ");
200288 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{structure}");
200292 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{%ssegid=%d h=%d pgno=%d}",
200299 int *pRc, /* IN/OUT: error code */
200307 sqlite3Fts5BufferAppendPrintf(pRc, pBuf,
200312 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " {id=%d leaves=%d..%d}",
200316 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "}");
200328 int *pRc, /* IN/OUT: error code */
200337 *pRc = rc;
200341 fts5DebugStructure(pRc, pBuf, p);
200353 int *pRc, /* IN/OUT: error code */
200363 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "%s%d", zSpace, (int)iVal);
200375 static int fts5DecodePoslist(int *pRc, Fts5Buffer *pBuf, const u8 *a, int n){
200380 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " %d", iVal);
200393 static int fts5DecodeDoclist(int *pRc, Fts5Buffer *pBuf, const u8 *a, int n){
200399 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " id=%lld", iDocid);
200405 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " nPos=%d%s", nPos, bDel?"*":"");
200406 iOff += fts5DecodePoslist(pRc, pBuf, &a[iOff], MIN(n-iOff, nPos));
200411 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " id=%lld", iDocid);
200426 ** If *pRc is other than SQLITE_OK when this function is called, it is a
200427 ** no-op. If an OOM or other error occurs within this function, *pRc is
200432 int *pRc, /* IN/OUT: Error code */
200455 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " %lld%s", iRowid, zApp);
202158 int *pRc,
202163 int rc = *pRc;
202170 *pRc = rc;
203671 int *pRc, /* IN/OUT: Error code */
203675 if( *pRc==SQLITE_OK ){
203676 *pRc = fts5ExecPrintf(pConfig->db, 0,