Lines Matching refs:pRc
22269 int *pRc /* OUT: Error code. SQLITE_OK or ERROR */ in localtimeOffset() argument
22302 *pRc = SQLITE_ERROR; in localtimeOffset()
22318 *pRc = SQLITE_OK; in localtimeOffset()
66027 static u8 *pageFindSlot(MemPage *pPg, int nByte, int *pRc){
66056 *pRc = SQLITE_CORRUPT_PAGE(pPg);
66070 *pRc = SQLITE_CORRUPT_PAGE(pPg);
66077 *pRc = SQLITE_CORRUPT_PAGE(pPg);
167107 SQLITE_PRIVATE int sqlite3Fts3EvalTestDeferred(Fts3Cursor *pCsr, int *pRc);
167449 int *pRc, /* Success code */
167456 if( *pRc ) return;
167461 *pRc = SQLITE_NOMEM;
167463 *pRc = sqlite3_exec(db, zSql, 0, 0, 0);
167508 static void fts3DeclareVtab(int *pRc, Fts3Table *p){
167509 if( *pRc==SQLITE_OK ){
167538 *pRc = rc;
167545 SQLITE_PRIVATE void sqlite3Fts3CreateStatTable(int *pRc, Fts3Table *p){
167546 fts3DbExec(pRc, p->db,
167551 if( (*pRc)==SQLITE_OK ) p->bHasStat = 1;
167628 static void fts3DatabasePageSize(int *pRc, Fts3Table *p){
167629 if( *pRc==SQLITE_OK ){
167650 *pRc = rc;
167688 int *pRc, /* IN/OUT: Error code */
167693 if( *pRc==SQLITE_OK ){
167704 if( z==0 ) *pRc = SQLITE_NOMEM;
167762 static char *fts3ReadExprList(Fts3Table *p, const char *zFunc, int *pRc){
167774 fts3Appendf(pRc, &zRet, "docid");
167776 fts3Appendf(pRc, &zRet, ",%s(x.'c%d%q')", zFunction, i, p->azColumn[i]);
167779 fts3Appendf(pRc, &zRet, ", x.%Q", "langid");
167783 fts3Appendf(pRc, &zRet, "rowid");
167785 fts3Appendf(pRc, &zRet, ", x.'%q'", p->azColumn[i]);
167788 fts3Appendf(pRc, &zRet, ", x.%Q", p->zLanguageid);
167791 fts3Appendf(pRc, &zRet, " FROM '%q'.'%q%s' AS x",
167819 static char *fts3WriteExprList(Fts3Table *p, const char *zFunc, int *pRc){
167830 fts3Appendf(pRc, &zRet, "?");
167832 fts3Appendf(pRc, &zRet, ",%s(?)", zFunction);
167835 fts3Appendf(pRc, &zRet, ", ?");
171030 int *pRc /* IN/OUT: Error code */
171032 if( pExpr && SQLITE_OK==*pRc ){
171043 *pRc = rc;
171051 fts3EvalAllocateReaders(pCsr, pExpr->pLeft, pnToken, pnOr, pRc);
171052 fts3EvalAllocateReaders(pCsr, pExpr->pRight, pnToken, pnOr, pRc);
171690 int *pRc /* IN/OUT: Error code */
171692 if( pExpr && SQLITE_OK==*pRc ){
171702 *pRc = fts3EvalPhraseStart(pCsr, 1, pExpr->pPhrase);
171704 fts3EvalStartReaders(pCsr, pExpr->pLeft, pRc);
171705 fts3EvalStartReaders(pCsr, pExpr->pRight, pRc);
171746 int *pRc /* IN/OUT: Error code */
171748 if( *pRc==SQLITE_OK ){
171752 for(i=0; *pRc==SQLITE_OK && i<pPhrase->nToken; i++){
171759 *pRc = sqlite3Fts3MsrOvfl(pCsr, pTC->pToken->pSegcsr, &pTC->nOvfl);
171772 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pLeft, ppTC, ppOr, pRc);
171778 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pRight, ppTC, ppOr, pRc);
172148 int *pRc /* IN/OUT: Error code */
172150 if( *pRc==SQLITE_OK ){
172165 fts3EvalNextRow(pCsr, pRight, pRc);
172171 fts3EvalNextRow(pCsr, pLeft, pRc);
172176 fts3EvalNextRow(pCsr, pLeft, pRc);
172177 fts3EvalNextRow(pCsr, pRight, pRc);
172178 while( !pLeft->bEof && !pRight->bEof && *pRc==SQLITE_OK ){
172182 fts3EvalNextRow(pCsr, pLeft, pRc);
172184 fts3EvalNextRow(pCsr, pRight, pRc);
172193 while( *pRc==SQLITE_OK && pRight->bEof==0 ){
172195 fts3EvalNextRow(pCsr, pRight, pRc);
172200 while( *pRc==SQLITE_OK && pLeft->bEof==0 ){
172202 fts3EvalNextRow(pCsr, pLeft, pRc);
172220 fts3EvalNextRow(pCsr, pLeft, pRc);
172222 fts3EvalNextRow(pCsr, pRight, pRc);
172224 fts3EvalNextRow(pCsr, pLeft, pRc);
172225 fts3EvalNextRow(pCsr, pRight, pRc);
172244 fts3EvalNextRow(pCsr, pRight, pRc);
172245 assert( *pRc!=SQLITE_OK || pRight->bStart );
172248 fts3EvalNextRow(pCsr, pLeft, pRc);
172250 while( !*pRc
172254 fts3EvalNextRow(pCsr, pRight, pRc);
172265 *pRc = fts3EvalPhraseNext(pCsr, pPhrase, &pExpr->bEof);
172288 static int fts3EvalNearTest(Fts3Expr *pExpr, int *pRc){
172311 if( *pRc==SQLITE_OK
172327 *pRc = SQLITE_NOMEM;
172373 int *pRc /* IN/OUT: Error code */
172376 if( *pRc==SQLITE_OK ){
172381 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
172382 && fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
172383 && fts3EvalNearTest(pExpr, pRc)
172419 int bHit1 = fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc);
172420 int bHit2 = fts3EvalTestExpr(pCsr, pExpr->pRight, pRc);
172427 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
172428 && !fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
172442 *pRc = fts3EvalDeferredPhrase(pCsr, pPhrase);
172484 SQLITE_PRIVATE int sqlite3Fts3EvalTestDeferred(Fts3Cursor *pCsr, int *pRc){
172485 int rc = *pRc;
172505 *pRc = rc;
172558 int *pRc
172560 if( pExpr && *pRc==SQLITE_OK ){
172574 *pRc = fts3EvalPhraseStart(pCsr, 0, pPhrase);
172585 fts3EvalRestart(pCsr, pExpr->pLeft, pRc);
172586 fts3EvalRestart(pCsr, pExpr->pRight, pRc);
177785 int *pRc /* OUT: Return code */
177824 *pRc = rc;
180834 static void blobGrowBuffer(Blob *pBlob, int nMin, int *pRc){
180835 if( *pRc==SQLITE_OK && nMin>pBlob->nAlloc ){
180842 *pRc = SQLITE_NOMEM;
181178 int *pRc /* IN/OUT: Error code */
181183 int rc = *pRc; /* Error code */
181192 assert( *pRc || pNode->block.nAlloc==0 );
181193 assert( *pRc || pNode->key.nAlloc==0 );
181254 *pRc = rc;
181938 int *pRc /* IN/OUT: Error code */
181940 blobGrowBuffer(pHint, pHint->n + 2*FTS3_VARINT_MAX, pRc);
181941 if( *pRc==SQLITE_OK ){
182283 int *pRc /* OUT: Return code */
182290 assert( *pRc==SQLITE_OK );
182344 *pRc = rc;
192653 static GeoPoly *geopolyParseJson(const unsigned char *z, int *pRc){
192711 if( pRc ) *pRc = SQLITE_OK;
192719 if( pRc ) *pRc = rc;
192733 int *pRc /* Write error here */
192748 if( pRc ) *pRc = SQLITE_NOMEM;
192764 if( pRc ) *pRc = SQLITE_OK;
192769 if( pRc ) *pRc = SQLITE_NOMEM;
192772 return geopolyParseJson(zJson, pRc);
192774 if( pRc ) *pRc = SQLITE_ERROR;
193057 int *pRc /* Error code here */
193070 p = geopolyFuncParam(context, pPoly, pRc);
193084 if( pRc ) *pRc = SQLITE_OK;
193091 if( pRc ) *pRc = SQLITE_NOMEM;
196955 static char *rbuStrndup(const char *zStr, int *pRc){
196958 if( *pRc==SQLITE_OK ){
196965 *pRc = SQLITE_NOMEM;
204268 static int sessionBufferGrow(SessionBuffer *p, size_t nByte, int *pRc){
204269 if( *pRc==SQLITE_OK && (size_t)(p->nAlloc-p->nBuf)<nByte ){
204278 *pRc = SQLITE_NOMEM;
204284 return (*pRc!=SQLITE_OK);
204295 static void sessionAppendValue(SessionBuffer *p, sqlite3_value *pVal, int *pRc){
204296 int rc = *pRc;
204305 *pRc = rc;
204317 static void sessionAppendByte(SessionBuffer *p, u8 v, int *pRc){
204318 if( 0==sessionBufferGrow(p, 1, pRc) ){
204330 static void sessionAppendVarint(SessionBuffer *p, int v, int *pRc){
204331 if( 0==sessionBufferGrow(p, 9, pRc) ){
204347 int *pRc
204349 if( nBlob>0 && 0==sessionBufferGrow(p, nBlob, pRc) ){
204366 int *pRc
204369 if( 0==sessionBufferGrow(p, nStr, pRc) ){
204386 int *pRc /* IN/OUT: Error code */
204390 sessionAppendStr(p, aBuf, pRc);
204405 int *pRc /* IN/OUT: Error code */
204408 if( 0==sessionBufferGrow(p, nStr, pRc) ){
204431 int *pRc /* IN/OUT: Error code */
204433 if( *pRc==SQLITE_OK ){
204435 sessionAppendByte(p, (u8)eType, pRc);
204446 sessionAppendBlob(p, aBuf, 8, pRc);
204458 sessionAppendVarint(p, nByte, pRc);
204459 sessionAppendBlob(p, z, nByte, pRc);
204461 *pRc = SQLITE_NOMEM;
204775 int *pRc /* IN/OUT: Error code */
204778 sessionAppendByte(pBuf, (bPatchset ? 'P' : 'T'), pRc);
204779 sessionAppendVarint(pBuf, pTab->nCol, pRc);
204780 sessionAppendBlob(pBuf, pTab->abPK, pTab->nCol, pRc);
204781 sessionAppendBlob(pBuf, (u8 *)pTab->zName, (int)strlen(pTab->zName)+1, pRc);
207567 int *pRc /* IN/OUT: error code */
207569 sessionBufferGrow(pBuf, n1+n2, pRc);
207570 if( *pRc==SQLITE_OK ){
207616 int *pRc /* IN/OUT: Return Code */
207618 sessionBufferGrow(pBuf, 2+nRec+nChange, pRc);
207619 if( *pRc==SQLITE_OK ){
208774 static char *sqlite3Fts5Mprintf(int *pRc, const char *zFmt, ...);
208782 #define fts5BufferGrow(pRc,pBuf,nn) ( \
208784 sqlite3Fts5BufferSize((pRc),(pBuf),(nn)+(pBuf)->n) \
208827 static void *sqlite3Fts5MallocZero(int *pRc, sqlite3_int64 nByte);
208828 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn);
210951 int *pRc,
210955 if( *pRc==SQLITE_OK && z ){
210958 if( p->zOut==0 ) *pRc = SQLITE_NOMEM;
211551 static int sqlite3Fts5BufferSize(int *pRc, Fts5Buffer *pBuf, u32 nByte){
211560 *pRc = SQLITE_NOMEM;
211575 static void sqlite3Fts5BufferAppendVarint(int *pRc, Fts5Buffer *pBuf, i64 iVal){
211576 if( fts5BufferGrow(pRc, pBuf, 9) ) return;
211597 int *pRc,
211602 assert_nc( *pRc || nData>=0 );
211604 if( fts5BufferGrow(pRc, pBuf, nData) ) return;
211616 int *pRc,
211621 sqlite3Fts5BufferAppendBlob(pRc, pBuf, nStr+1, (const u8*)zStr);
211634 int *pRc,
211638 if( *pRc==SQLITE_OK ){
211646 *pRc = SQLITE_NOMEM;
211648 sqlite3Fts5BufferAppendString(pRc, pBuf, zTmp);
211654 static char *sqlite3Fts5Mprintf(int *pRc, const char *zFmt, ...){
211656 if( *pRc==SQLITE_OK ){
211662 *pRc = SQLITE_NOMEM;
211691 int *pRc,
211697 sqlite3Fts5BufferAppendBlob(pRc, pBuf, nData, pData);
211789 static void *sqlite3Fts5MallocZero(int *pRc, sqlite3_int64 nByte){
211791 if( *pRc==SQLITE_OK ){
211794 if( nByte>0 ) *pRc = SQLITE_NOMEM;
211810 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn){
211812 if( *pRc==SQLITE_OK ){
211821 *pRc = SQLITE_NOMEM;
212358 int *pRc, /* IN/OUT: Error code */
212368 assert( *pRc==SQLITE_OK );
212373 *pRc = SQLITE_NOMEM;
213497 static int fts5ExprNearIsMatch(int *pRc, Fts5ExprNearset *pNear){
213503 int rc = *pRc;
213517 *pRc = rc;
213581 *pRc = rc;
213600 int *pRc, /* OUT: Error code */
213610 *pRc = rc;
213626 int *pRc /* OUT: Error code */
213643 *pRc = rc;
213653 int *pRc,
213658 int rc = *pRc;
213693 *pRc = rc;
213694 if( i==pNear->nPhrase && (i==1 || fts5ExprNearIsMatch(pRc, pNear)) ){
214873 static Fts5Colset *fts5CloneColset(int *pRc, Fts5Colset *pOrig){
214877 pRet = (Fts5Colset*)sqlite3Fts5MallocZero(pRc, nByte);
217280 static void fts5StructureAddLevel(int *pRc, Fts5Structure **ppStruct){
217281 if( *pRc==SQLITE_OK ){
217295 *pRc = SQLITE_NOMEM;
217305 int *pRc,
217311 if( *pRc==SQLITE_OK ){
217328 *pRc = SQLITE_NOMEM;
219533 int *pRc,
219538 if( *pRc==SQLITE_OK ){
219545 fts5BufferAppendBlob(pRc, pBuf, nSub, pSub);
219672 int *pRc = &pIter->pIndex->rc;
219674 fts5IndexExtractColset(pRc, pColset, a, pSeg->nPos, &pIter->poslist);
219689 static void fts5IterSetOutputCb(int *pRc, Fts5Iter *pIter){
219690 if( *pRc==SQLITE_OK ){
219712 sqlite3Fts5BufferSize(pRc, &pIter->poslist, pConfig->nCol);
222525 static void fts5DebugRowid(int *pRc, Fts5Buffer *pBuf, i64 iKey){
222531 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{averages} ");
222533 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{structure}");
222537 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{%ssegid=%d h=%d pgno=%d}",
222544 int *pRc, /* IN/OUT: error code */
222552 sqlite3Fts5BufferAppendPrintf(pRc, pBuf,
222557 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " {id=%d leaves=%d..%d}",
222561 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "}");
222573 int *pRc, /* IN/OUT: error code */
222582 *pRc = rc;
222586 fts5DebugStructure(pRc, pBuf, p);
222598 int *pRc, /* IN/OUT: error code */
222608 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "%s%d", zSpace, (int)iVal);
222620 static int fts5DecodePoslist(int *pRc, Fts5Buffer *pBuf, const u8 *a, int n){
222625 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " %d", iVal);
222638 static int fts5DecodeDoclist(int *pRc, Fts5Buffer *pBuf, const u8 *a, int n){
222644 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " id=%lld", iDocid);
222650 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " nPos=%d%s", nPos, bDel?"*":"");
222651 iOff += fts5DecodePoslist(pRc, pBuf, &a[iOff], MIN(n-iOff, nPos));
222656 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " id=%lld", iDocid);
222677 int *pRc, /* IN/OUT: Error code */
222700 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " %lld%s", iRowid, zApp);
224529 int *pRc,
224534 int rc = *pRc;
224541 *pRc = rc;
226070 int *pRc, /* IN/OUT: Error code */
226074 if( *pRc==SQLITE_OK ){
226075 *pRc = fts5ExecPrintf(pConfig->db, 0,