Home | History | Annotate | Download | only in orig

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, ", ?");
152823 int *pRc /* IN/OUT: Error code */
152825 if( pExpr && SQLITE_OK==*pRc ){
152836 *pRc = rc;
152844 fts3EvalAllocateReaders(pCsr, pExpr->pLeft, pnToken, pnOr, pRc);
152845 fts3EvalAllocateReaders(pCsr, pExpr->pRight, pnToken, pnOr, pRc);
153462 ** If *pRc is not SQLITE_OK when this function is called, it is a no-op.
153473 ** If an error occurs within this function, *pRc is set to an SQLite error
153479 int *pRc /* IN/OUT: Error code */
153481 if( pExpr && SQLITE_OK==*pRc ){
153491 *pRc = fts3EvalPhraseStart(pCsr, 1, pExpr->pPhrase);
153493 fts3EvalStartReaders(pCsr, pExpr->pLeft, pRc);
153494 fts3EvalStartReaders(pCsr, pExpr->pRight, pRc);
153525 ** If *pRc is not SQLITE_OK when this function is called, it is a no-op.
153526 ** Otherwise, if an error occurs during execution, *pRc is set to an
153535 int *pRc /* IN/OUT: Error code */
153537 if( *pRc==SQLITE_OK ){
153541 for(i=0; *pRc==SQLITE_OK && i<pPhrase->nToken; i++){
153548 *pRc = sqlite3Fts3MsrOvfl(pCsr, pTC->pToken->pSegcsr, &pTC->nOvfl);
153561 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pLeft, ppTC, ppOr, pRc);
153567 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pRight, ppTC, ppOr, pRc);
153891 ** This function is a no-op if *pRc is other than SQLITE_OK when it is called.
153897 ** If an error occurs, *pRc is set to an SQLite error code. Otherwise, if
153934 int *pRc /* IN/OUT: Error code */
153936 if( *pRc==SQLITE_OK ){
153951 fts3EvalNextRow(pCsr, pRight, pRc);
153957 fts3EvalNextRow(pCsr, pLeft, pRc);
153962 fts3EvalNextRow(pCsr, pLeft, pRc);
153963 fts3EvalNextRow(pCsr, pRight, pRc);
153964 while( !pLeft->bEof && !pRight->bEof && *pRc==SQLITE_OK ){
153968 fts3EvalNextRow(pCsr, pLeft, pRc);
153970 fts3EvalNextRow(pCsr, pRight, pRc);
153979 while( *pRc==SQLITE_OK && pRight->bEof==0 ){
153981 fts3EvalNextRow(pCsr, pRight, pRc);
153986 while( *pRc==SQLITE_OK && pLeft->bEof==0 ){
153988 fts3EvalNextRow(pCsr, pLeft, pRc);
154005 fts3EvalNextRow(pCsr, pLeft, pRc);
154007 fts3EvalNextRow(pCsr, pRight, pRc);
154009 fts3EvalNextRow(pCsr, pLeft, pRc);
154010 fts3EvalNextRow(pCsr, pRight, pRc);
154029 fts3EvalNextRow(pCsr, pRight, pRc);
154030 assert( *pRc!=SQLITE_OK || pRight->bStart );
154033 fts3EvalNextRow(pCsr, pLeft, pRc);
154035 while( !*pRc
154039 fts3EvalNextRow(pCsr, pRight, pRc);
154050 *pRc = fts3EvalPhraseNext(pCsr, pPhrase, &pExpr->bEof);
154059 ** If *pRc is not SQLITE_OK, or if pExpr is not the root node of a NEAR
154073 static int fts3EvalNearTest(Fts3Expr *pExpr, int *pRc){
154096 if( *pRc==SQLITE_OK
154112 *pRc = SQLITE_NOMEM;
154150 ** If *pRc is not SQLITE_OK when this function is called, it is a no-op.
154151 ** If an error occurs during execution of this function, *pRc is set to
154158 int *pRc /* IN/OUT: Error code */
154161 if( *pRc==SQLITE_OK ){
154166 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
154167 && fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
154168 && fts3EvalNearTest(pExpr, pRc)
154204 int bHit1 = fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc);
154205 int bHit2 = fts3EvalTestExpr(pCsr, pExpr->pRight, pRc);
154212 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
154213 && !fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
154227 *pRc = fts3EvalDeferredPhrase(pCsr, pPhrase);
154253 ** If *pRc is not SQLITE_OK when this function is called, it immediately
154258 ** 1. *pRc is SQLITE_OK when this function returns, and
154266 SQLITE_PRIVATE int sqlite3Fts3EvalTestDeferred(Fts3Cursor *pCsr, int *pRc){
154267 int rc = *pRc;
154287 *pRc = rc;
154333 ** If *pRc is other than SQLITE_OK when this function is called, it is
154334 ** a no-op. If an error occurs within this function, *pRc is set to an
154340 int *pRc
154342 if( pExpr && *pRc==SQLITE_OK ){
154356 *pRc = fts3EvalPhraseStart(pCsr, 0, pPhrase);
154367 fts3EvalRestart(pCsr, pExpr->pLeft, pRc);
154368 fts3EvalRestart(pCsr, pExpr->pRight, pRc);
159380 int *pRC, /* Result code */
159387 if( *pRC ) return;
159393 *pRC = rc;
159569 ** If an OOM error occurs, *pRc is set to SQLITE_NOMEM before returning.
159578 int *pRc /* OUT: Return code */
159617 *pRc = rc;
159950 int *pRC, /* Result code */
159960 if( *pRC ) return;
159978 *pRC = rc;
159987 *pRC = rc;
162223 int *pRC, /* Result code */
162232 if( *pRC ) return;
162235 *pRC = SQLITE_NOMEM;
162242 *pRC = rc;
162248 *pRC = sqlite3_reset(pStmt);
162267 int *pRC, /* The result code */
162282 if( *pRC ) return;
162285 *pRC = SQLITE_NOMEM;
162292 *pRC = rc;
162306 *pRC = rc;
162327 *pRC = rc;
162333 *pRC = sqlite3_reset(pStmt);
162570 ** If *pRc is not SQLITE_OK when this function is called, it is a no-op.
162574 ** If an OOM error occurs, set *pRc to SQLITE_NOMEM and leave pBlob->a
162578 static void blobGrowBuffer(Blob *pBlob, int nMin, int *pRc){
162579 if( *pRc==SQLITE_OK && nMin>pBlob->nAlloc ){
162586 *pRc = SQLITE_NOMEM;
162904 ** If *pRc is not SQLITE_OK when this function is called, then no attempt
162908 ** Otherwise, if *pRc is initially SQLITE_OK and an error occurs while
162909 ** flushing buffers to disk, *pRc is set to an SQLite error code before
162915 int *pRc /* IN/OUT: Error code */
162920 int rc = *pRc; /* Error code */
162929 assert( *pRc || pNode->block.nAlloc==0 );
162930 assert( *pRc || pNode->key.nAlloc==0 );
162991 *pRc = rc;
163642 ** If *pRc is not SQLITE_OK when this function is called, it is a no-op.
163647 ** If successful, leave *pRc set to SQLITE_OK and return. If an error occurs,
163648 ** set *pRc to an SQLite error code before returning.
163654 int *pRc /* IN/OUT: Error code */
163656 blobGrowBuffer(pHint, pHint->n + 2*FTS3_VARINT_MAX, pRc);
163657 if( *pRc==SQLITE_OK ){
163966 ** If successful, the checksum value is returned and *pRc set to SQLITE_OK.
163967 ** Otherwise, if an error occurs, *pRc is set to an SQLite error code. The
163974 int *pRc /* OUT: Return code */
163981 assert( *pRc==SQLITE_OK );
164031 *pRc = rc;
168365 static RtreeNode *rtreeNodeOfFirstSearchPoint(RtreeCursor *pCur, int *pRC){
168371 assert( pRC!=0 );
168373 *pRC = nodeAcquire(RTREE_OF_CURSOR(pCur), id, 0, &pCur->aNode[ii]);
173782 ** output variable (*pRc) is set to SQLITE_NOMEM before returning. Otherwise,
173783 ** if the allocation succeeds, (*pRc) is left unchanged.
173785 static char *rbuStrndup(const char *zStr, int *pRc){
173788 assert( *pRc==SQLITE_OK );
173795 *pRc = SQLITE_NOMEM;
180501 ** set *pRc to SQLITE_NOMEM and return non-zero.
180503 static int sessionBufferGrow(SessionBuffer *p, int nByte, int *pRc){
180504 if( *pRc==SQLITE_OK && p->nAlloc-p->nBuf<nByte ){
180513 *pRc = SQLITE_NOMEM;
180519 return (*pRc!=SQLITE_OK);
180526 ** This function is a no-op if *pRc is non-zero when it is called.
180527 ** Otherwise, if an error occurs, *pRc is set to an SQLite error code
180530 static void sessionAppendValue(SessionBuffer *p, sqlite3_value *pVal, int *pRc){
180531 int rc = *pRc;
180540 *pRc = rc;
180546 ** This function is a no-op if *pRc is other than SQLITE_OK when it is
180549 ** If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before
180552 static void sessionAppendByte(SessionBuffer *p, u8 v, int *pRc){
180553 if( 0==sessionBufferGrow(p, 1, pRc) ){
180559 ** This function is a no-op if *pRc is other than SQLITE_OK when it is
180562 ** If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before
180565 static void sessionAppendVarint(SessionBuffer *p, int v, int *pRc){
180566 if( 0==sessionBufferGrow(p, 9, pRc) ){
180572 ** This function is a no-op if *pRc is other than SQLITE_OK when it is
180575 ** If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before
180582 int *pRc
180584 if( nBlob>0 && 0==sessionBufferGrow(p, nBlob, pRc) ){
180591 ** This function is a no-op if *pRc is other than SQLITE_OK when it is
180595 ** If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before
180601 int *pRc
180604 if( 0==sessionBufferGrow(p, nStr, pRc) ){
180611 ** This function is a no-op if *pRc is other than SQLITE_OK when it is
180615 ** If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before
180621 int *pRc /* IN/OUT: Error code */
180625 sessionAppendStr(p, aBuf, pRc);
180629 ** This function is a no-op if *pRc is other than SQLITE_OK when it is
180634 ** If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before
180640 int *pRc /* IN/OUT: Error code */
180643 if( 0==sessionBufferGrow(p, nStr, pRc) ){
180657 ** This function is a no-op if *pRc is other than SQLITE_OK when it is
180666 int *pRc /* IN/OUT: Error code */
180668 if( *pRc==SQLITE_OK ){
180670 sessionAppendByte(p, (u8)eType, pRc);
180681 sessionAppendBlob(p, aBuf, 8, pRc);
180693 sessionAppendVarint(p, nByte, pRc);
180694 sessionAppendBlob(p, z, nByte, pRc);
180696 *pRc = SQLITE_NOMEM;
181000 ** This function is a no-op if *pRc is set to other than SQLITE_OK when it
181002 ** changeset format) to buffer *pBuf. If an error occurs, set *pRc to an
181009 int *pRc /* IN/OUT: Error code */
181012 sessionAppendByte(pBuf, (bPatchset ? 'P' : 'T'), pRc);
181013 sessionAppendVarint(pBuf, pTab->nCol, pRc);
181014 sessionAppendBlob(pBuf, pTab->abPK, pTab->nCol, pRc);
181015 sessionAppendBlob(pBuf, (u8 *)pTab->zName, (int)strlen(pTab->zName)+1, pRc);
186806 static char *sqlite3Fts5Mprintf(int *pRc, const char *zFmt, ...);
186814 #define fts5BufferGrow(pRc,pBuf,nn) ( \
186816 sqlite3Fts5BufferSize((pRc),(pBuf),(nn)+(pBuf)->n) \
186859 static void *sqlite3Fts5MallocZero(int *pRc, int nByte);
186860 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn);
188879 ** If *pRc is set to any value other than SQLITE_OK when this function is
188881 ** *pRc is set to an error code before returning.
188884 int *pRc,
188888 if( *pRc==SQLITE_OK ){
188891 if( p->zOut==0 ) *pRc = SQLITE_NOMEM;
189482 static int sqlite3Fts5BufferSize(int *pRc, Fts5Buffer *pBuf, u32 nByte){
189491 *pRc = SQLITE_NOMEM;
189506 static void sqlite3Fts5BufferAppendVarint(int *pRc, Fts5Buffer *pBuf, i64 iVal){
189507 if( fts5BufferGrow(pRc, pBuf, 9) ) return;
189528 int *pRc,
189533 assert_nc( *pRc || nData>=0 );
189535 if( fts5BufferGrow(pRc, pBuf, nData) ) return;
189547 int *pRc,
189552 sqlite3Fts5BufferAppendBlob(pRc, pBuf, nStr+1, (const u8*)zStr);
189565 int *pRc,
189569 if( *pRc==SQLITE_OK ){
189577 *pRc = SQLITE_NOMEM;
189579 sqlite3Fts5BufferAppendString(pRc, pBuf, zTmp);
189585 static char *sqlite3Fts5Mprintf(int *pRc, const char *zFmt, ...){
189587 if( *pRc==SQLITE_OK ){
189593 *pRc = SQLITE_NOMEM;
189622 int *pRc,
189628 sqlite3Fts5BufferAppendBlob(pRc, pBuf, nData, pData);
189711 static void *sqlite3Fts5MallocZero(int *pRc, int nByte){
189713 if( *pRc==SQLITE_OK ){
189716 if( nByte>0 ) *pRc = SQLITE_NOMEM;
189732 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn){
189734 if( *pRc==SQLITE_OK ){
189743 *pRc = SQLITE_NOMEM;
190274 ** If *pRc is other than SQLITE_OK when this function is called, it is
190276 ** function, *pRc is set to SQLITE_NOMEM before returning. *pRc is *not*
190280 int *pRc, /* IN/OUT: Error code */
190290 assert( *pRc==SQLITE_OK );
190295 *pRc = SQLITE_NOMEM;
191372 ** If in/out parameter (*pRc) is set to other than SQLITE_OK when this
191374 ** occurs within this function (*pRc) is set accordingly before returning.
191381 static int fts5ExprNearIsMatch(int *pRc, Fts5ExprNearset *pNear){
191387 int rc = *pRc;
191401 *pRc = rc;
191465 *pRc = rc;
191477 ** an error occurs, set *pRc to an error code. If either *pbEof or *pRc
191484 int *pRc, /* OUT: Error code */
191494 *pRc = rc;
191510 int *pRc /* OUT: Error code */
191527 *pRc = rc;
191537 int *pRc,
191542 int rc = *pRc;
191577 *pRc = rc;
191578 if( i==pNear->nPhrase && (i==1 || fts5ExprNearIsMatch(pRc, pNear)) ){
192746 ** If argument pOrig is NULL, or if (*pRc) is set to anything other than
192751 ** fails, (*pRc) is set to SQLITE_NOMEM and NULL is returned.
192753 static Fts5Colset *fts5CloneColset(int *pRc, Fts5Colset *pOrig){
192757 pRet = (Fts5Colset*)sqlite3Fts5MallocZero(pRc, nByte);
195127 static void fts5StructureAddLevel(int *pRc, Fts5Structure **ppStruct){
195128 if( *pRc==SQLITE_OK ){
195142 *pRc = SQLITE_NOMEM;
195152 int *pRc,
195158 if( *pRc==SQLITE_OK ){
195175 *pRc = SQLITE_NOMEM;
197365 int *pRc,
197370 if( *pRc==SQLITE_OK ){
197377 fts5BufferAppendBlob(pRc, pBuf, nSub, pSub);
197504 int *pRc = &pIter->pIndex->rc;
197506 fts5IndexExtractColset(pRc, pColset, a, pSeg->nPos, &pIter->poslist);
197521 static void fts5IterSetOutputCb(int *pRc, Fts5Iter *pIter){
197522 if( *pRc==SQLITE_OK ){
197544 sqlite3Fts5BufferSize(pRc, &pIter->poslist, pConfig->nCol);
200268 static void fts5DebugRowid(int *pRc, Fts5Buffer *pBuf, i64 iKey){
200274 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{averages} ");
200276 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{structure}");
200280 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{%ssegid=%d h=%d pgno=%d}",
200287 int *pRc, /* IN/OUT: error code */
200295 sqlite3Fts5BufferAppendPrintf(pRc, pBuf,
200300 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " {id=%d leaves=%d..%d}",
200304 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "}");
200316 int *pRc, /* IN/OUT: error code */
200325 *pRc = rc;
200329 fts5DebugStructure(pRc, pBuf, p);
200341 int *pRc, /* IN/OUT: error code */
200351 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "%s%d", zSpace, (int)iVal);
200363 static int fts5DecodePoslist(int *pRc, Fts5Buffer *pBuf, const u8 *a, int n){
200368 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " %d", iVal);
200381 static int fts5DecodeDoclist(int *pRc, Fts5Buffer *pBuf, const u8 *a, int n){
200387 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " id=%lld", iDocid);
200393 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " nPos=%d%s", nPos, bDel?"*":"");
200394 iOff += fts5DecodePoslist(pRc, pBuf, &a[iOff], MIN(n-iOff, nPos));
200399 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " id=%lld", iDocid);
200414 ** If *pRc is other than SQLITE_OK when this function is called, it is a
200415 ** no-op. If an OOM or other error occurs within this function, *pRc is
200420 int *pRc, /* IN/OUT: Error code */
200443 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " %lld%s", iRowid, zApp);
202146 int *pRc,
202151 int rc = *pRc;
202158 *pRc = rc;
203659 int *pRc, /* IN/OUT: Error code */
203663 if( *pRc==SQLITE_OK ){
203664 *pRc = fts5ExecPrintf(pConfig->db, 0,