• Home
  • Raw
  • Download

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()
65896 static u8 *pageFindSlot(MemPage *pPg, int nByte, int *pRc){
65925 *pRc = SQLITE_CORRUPT_PAGE(pPg);
65939 *pRc = SQLITE_CORRUPT_PAGE(pPg);
65946 *pRc = SQLITE_CORRUPT_PAGE(pPg);
166413 SQLITE_PRIVATE int sqlite3Fts3EvalTestDeferred(Fts3Cursor *pCsr, int *pRc);
166755 int *pRc, /* Success code */
166762 if( *pRc ) return;
166767 *pRc = SQLITE_NOMEM;
166769 *pRc = sqlite3_exec(db, zSql, 0, 0, 0);
166814 static void fts3DeclareVtab(int *pRc, Fts3Table *p){
166815 if( *pRc==SQLITE_OK ){
166844 *pRc = rc;
166851 SQLITE_PRIVATE void sqlite3Fts3CreateStatTable(int *pRc, Fts3Table *p){
166852 fts3DbExec(pRc, p->db,
166857 if( (*pRc)==SQLITE_OK ) p->bHasStat = 1;
166934 static void fts3DatabasePageSize(int *pRc, Fts3Table *p){
166935 if( *pRc==SQLITE_OK ){
166956 *pRc = rc;
166994 int *pRc, /* IN/OUT: Error code */
166999 if( *pRc==SQLITE_OK ){
167010 if( z==0 ) *pRc = SQLITE_NOMEM;
167068 static char *fts3ReadExprList(Fts3Table *p, const char *zFunc, int *pRc){
167080 fts3Appendf(pRc, &zRet, "docid");
167082 fts3Appendf(pRc, &zRet, ",%s(x.'c%d%q')", zFunction, i, p->azColumn[i]);
167085 fts3Appendf(pRc, &zRet, ", x.%Q", "langid");
167089 fts3Appendf(pRc, &zRet, "rowid");
167091 fts3Appendf(pRc, &zRet, ", x.'%q'", p->azColumn[i]);
167094 fts3Appendf(pRc, &zRet, ", x.%Q", p->zLanguageid);
167097 fts3Appendf(pRc, &zRet, " FROM '%q'.'%q%s' AS x",
167125 static char *fts3WriteExprList(Fts3Table *p, const char *zFunc, int *pRc){
167136 fts3Appendf(pRc, &zRet, "?");
167138 fts3Appendf(pRc, &zRet, ",%s(?)", zFunction);
167141 fts3Appendf(pRc, &zRet, ", ?");
170341 int *pRc /* IN/OUT: Error code */
170343 if( pExpr && SQLITE_OK==*pRc ){
170354 *pRc = rc;
170362 fts3EvalAllocateReaders(pCsr, pExpr->pLeft, pnToken, pnOr, pRc);
170363 fts3EvalAllocateReaders(pCsr, pExpr->pRight, pnToken, pnOr, pRc);
171001 int *pRc /* IN/OUT: Error code */
171003 if( pExpr && SQLITE_OK==*pRc ){
171013 *pRc = fts3EvalPhraseStart(pCsr, 1, pExpr->pPhrase);
171015 fts3EvalStartReaders(pCsr, pExpr->pLeft, pRc);
171016 fts3EvalStartReaders(pCsr, pExpr->pRight, pRc);
171057 int *pRc /* IN/OUT: Error code */
171059 if( *pRc==SQLITE_OK ){
171063 for(i=0; *pRc==SQLITE_OK && i<pPhrase->nToken; i++){
171070 *pRc = sqlite3Fts3MsrOvfl(pCsr, pTC->pToken->pSegcsr, &pTC->nOvfl);
171083 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pLeft, ppTC, ppOr, pRc);
171089 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pRight, ppTC, ppOr, pRc);
171457 int *pRc /* IN/OUT: Error code */
171459 if( *pRc==SQLITE_OK ){
171474 fts3EvalNextRow(pCsr, pRight, pRc);
171480 fts3EvalNextRow(pCsr, pLeft, pRc);
171485 fts3EvalNextRow(pCsr, pLeft, pRc);
171486 fts3EvalNextRow(pCsr, pRight, pRc);
171487 while( !pLeft->bEof && !pRight->bEof && *pRc==SQLITE_OK ){
171491 fts3EvalNextRow(pCsr, pLeft, pRc);
171493 fts3EvalNextRow(pCsr, pRight, pRc);
171502 while( *pRc==SQLITE_OK && pRight->bEof==0 ){
171504 fts3EvalNextRow(pCsr, pRight, pRc);
171509 while( *pRc==SQLITE_OK && pLeft->bEof==0 ){
171511 fts3EvalNextRow(pCsr, pLeft, pRc);
171529 fts3EvalNextRow(pCsr, pLeft, pRc);
171531 fts3EvalNextRow(pCsr, pRight, pRc);
171533 fts3EvalNextRow(pCsr, pLeft, pRc);
171534 fts3EvalNextRow(pCsr, pRight, pRc);
171553 fts3EvalNextRow(pCsr, pRight, pRc);
171554 assert( *pRc!=SQLITE_OK || pRight->bStart );
171557 fts3EvalNextRow(pCsr, pLeft, pRc);
171559 while( !*pRc
171563 fts3EvalNextRow(pCsr, pRight, pRc);
171574 *pRc = fts3EvalPhraseNext(pCsr, pPhrase, &pExpr->bEof);
171597 static int fts3EvalNearTest(Fts3Expr *pExpr, int *pRc){
171620 if( *pRc==SQLITE_OK
171636 *pRc = SQLITE_NOMEM;
171682 int *pRc /* IN/OUT: Error code */
171685 if( *pRc==SQLITE_OK ){
171690 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
171691 && fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
171692 && fts3EvalNearTest(pExpr, pRc)
171728 int bHit1 = fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc);
171729 int bHit2 = fts3EvalTestExpr(pCsr, pExpr->pRight, pRc);
171736 fts3EvalTestExpr(pCsr, pExpr->pLeft, pRc)
171737 && !fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
171751 *pRc = fts3EvalDeferredPhrase(pCsr, pPhrase);
171790 SQLITE_PRIVATE int sqlite3Fts3EvalTestDeferred(Fts3Cursor *pCsr, int *pRc){
171791 int rc = *pRc;
171811 *pRc = rc;
171864 int *pRc
171866 if( pExpr && *pRc==SQLITE_OK ){
171880 *pRc = fts3EvalPhraseStart(pCsr, 0, pPhrase);
171891 fts3EvalRestart(pCsr, pExpr->pLeft, pRc);
171892 fts3EvalRestart(pCsr, pExpr->pRight, pRc);
177087 int *pRc /* OUT: Return code */
177126 *pRc = rc;
180126 static void blobGrowBuffer(Blob *pBlob, int nMin, int *pRc){
180127 if( *pRc==SQLITE_OK && nMin>pBlob->nAlloc ){
180134 *pRc = SQLITE_NOMEM;
180470 int *pRc /* IN/OUT: Error code */
180475 int rc = *pRc; /* Error code */
180484 assert( *pRc || pNode->block.nAlloc==0 );
180485 assert( *pRc || pNode->key.nAlloc==0 );
180546 *pRc = rc;
181230 int *pRc /* IN/OUT: Error code */
181232 blobGrowBuffer(pHint, pHint->n + 2*FTS3_VARINT_MAX, pRc);
181233 if( *pRc==SQLITE_OK ){
181575 int *pRc /* OUT: Return code */
181582 assert( *pRc==SQLITE_OK );
181636 *pRc = rc;
191922 static GeoPoly *geopolyParseJson(const unsigned char *z, int *pRc){
191980 if( pRc ) *pRc = SQLITE_OK;
191988 if( pRc ) *pRc = rc;
192002 int *pRc /* Write error here */
192017 if( pRc ) *pRc = SQLITE_NOMEM;
192033 if( pRc ) *pRc = SQLITE_OK;
192038 if( pRc ) *pRc = SQLITE_NOMEM;
192041 return geopolyParseJson(zJson, pRc);
192043 if( pRc ) *pRc = SQLITE_ERROR;
192326 int *pRc /* Error code here */
192339 p = geopolyFuncParam(context, pPoly, pRc);
192353 if( pRc ) *pRc = SQLITE_OK;
192360 if( pRc ) *pRc = SQLITE_NOMEM;
196222 static char *rbuStrndup(const char *zStr, int *pRc){
196225 if( *pRc==SQLITE_OK ){
196232 *pRc = SQLITE_NOMEM;
203535 static int sessionBufferGrow(SessionBuffer *p, size_t nByte, int *pRc){
203536 if( *pRc==SQLITE_OK && (size_t)(p->nAlloc-p->nBuf)<nByte ){
203545 *pRc = SQLITE_NOMEM;
203551 return (*pRc!=SQLITE_OK);
203562 static void sessionAppendValue(SessionBuffer *p, sqlite3_value *pVal, int *pRc){
203563 int rc = *pRc;
203572 *pRc = rc;
203584 static void sessionAppendByte(SessionBuffer *p, u8 v, int *pRc){
203585 if( 0==sessionBufferGrow(p, 1, pRc) ){
203597 static void sessionAppendVarint(SessionBuffer *p, int v, int *pRc){
203598 if( 0==sessionBufferGrow(p, 9, pRc) ){
203614 int *pRc
203616 if( nBlob>0 && 0==sessionBufferGrow(p, nBlob, pRc) ){
203633 int *pRc
203636 if( 0==sessionBufferGrow(p, nStr, pRc) ){
203653 int *pRc /* IN/OUT: Error code */
203657 sessionAppendStr(p, aBuf, pRc);
203672 int *pRc /* IN/OUT: Error code */
203675 if( 0==sessionBufferGrow(p, nStr, pRc) ){
203698 int *pRc /* IN/OUT: Error code */
203700 if( *pRc==SQLITE_OK ){
203702 sessionAppendByte(p, (u8)eType, pRc);
203713 sessionAppendBlob(p, aBuf, 8, pRc);
203725 sessionAppendVarint(p, nByte, pRc);
203726 sessionAppendBlob(p, z, nByte, pRc);
203728 *pRc = SQLITE_NOMEM;
204042 int *pRc /* IN/OUT: Error code */
204045 sessionAppendByte(pBuf, (bPatchset ? 'P' : 'T'), pRc);
204046 sessionAppendVarint(pBuf, pTab->nCol, pRc);
204047 sessionAppendBlob(pBuf, pTab->abPK, pTab->nCol, pRc);
204048 sessionAppendBlob(pBuf, (u8 *)pTab->zName, (int)strlen(pTab->zName)+1, pRc);
206825 int *pRc /* IN/OUT: error code */
206827 sessionBufferGrow(pBuf, n1+n2, pRc);
206828 if( *pRc==SQLITE_OK ){
206874 int *pRc /* IN/OUT: Return Code */
206876 sessionBufferGrow(pBuf, 2+nRec+nChange, pRc);
206877 if( *pRc==SQLITE_OK ){
208032 static char *sqlite3Fts5Mprintf(int *pRc, const char *zFmt, ...);
208040 #define fts5BufferGrow(pRc,pBuf,nn) ( \
208042 sqlite3Fts5BufferSize((pRc),(pBuf),(nn)+(pBuf)->n) \
208085 static void *sqlite3Fts5MallocZero(int *pRc, sqlite3_int64 nByte);
208086 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn);
210209 int *pRc,
210213 if( *pRc==SQLITE_OK && z ){
210216 if( p->zOut==0 ) *pRc = SQLITE_NOMEM;
210809 static int sqlite3Fts5BufferSize(int *pRc, Fts5Buffer *pBuf, u32 nByte){
210818 *pRc = SQLITE_NOMEM;
210833 static void sqlite3Fts5BufferAppendVarint(int *pRc, Fts5Buffer *pBuf, i64 iVal){
210834 if( fts5BufferGrow(pRc, pBuf, 9) ) return;
210855 int *pRc,
210860 assert_nc( *pRc || nData>=0 );
210862 if( fts5BufferGrow(pRc, pBuf, nData) ) return;
210874 int *pRc,
210879 sqlite3Fts5BufferAppendBlob(pRc, pBuf, nStr+1, (const u8*)zStr);
210892 int *pRc,
210896 if( *pRc==SQLITE_OK ){
210904 *pRc = SQLITE_NOMEM;
210906 sqlite3Fts5BufferAppendString(pRc, pBuf, zTmp);
210912 static char *sqlite3Fts5Mprintf(int *pRc, const char *zFmt, ...){
210914 if( *pRc==SQLITE_OK ){
210920 *pRc = SQLITE_NOMEM;
210949 int *pRc,
210955 sqlite3Fts5BufferAppendBlob(pRc, pBuf, nData, pData);
211047 static void *sqlite3Fts5MallocZero(int *pRc, sqlite3_int64 nByte){
211049 if( *pRc==SQLITE_OK ){
211052 if( nByte>0 ) *pRc = SQLITE_NOMEM;
211068 static char *sqlite3Fts5Strndup(int *pRc, const char *pIn, int nIn){
211070 if( *pRc==SQLITE_OK ){
211079 *pRc = SQLITE_NOMEM;
211616 int *pRc, /* IN/OUT: Error code */
211626 assert( *pRc==SQLITE_OK );
211631 *pRc = SQLITE_NOMEM;
212755 static int fts5ExprNearIsMatch(int *pRc, Fts5ExprNearset *pNear){
212761 int rc = *pRc;
212775 *pRc = rc;
212839 *pRc = rc;
212858 int *pRc, /* OUT: Error code */
212868 *pRc = rc;
212884 int *pRc /* OUT: Error code */
212901 *pRc = rc;
212911 int *pRc,
212916 int rc = *pRc;
212951 *pRc = rc;
212952 if( i==pNear->nPhrase && (i==1 || fts5ExprNearIsMatch(pRc, pNear)) ){
214131 static Fts5Colset *fts5CloneColset(int *pRc, Fts5Colset *pOrig){
214135 pRet = (Fts5Colset*)sqlite3Fts5MallocZero(pRc, nByte);
216538 static void fts5StructureAddLevel(int *pRc, Fts5Structure **ppStruct){
216539 if( *pRc==SQLITE_OK ){
216553 *pRc = SQLITE_NOMEM;
216563 int *pRc,
216569 if( *pRc==SQLITE_OK ){
216586 *pRc = SQLITE_NOMEM;
218791 int *pRc,
218796 if( *pRc==SQLITE_OK ){
218803 fts5BufferAppendBlob(pRc, pBuf, nSub, pSub);
218930 int *pRc = &pIter->pIndex->rc;
218932 fts5IndexExtractColset(pRc, pColset, a, pSeg->nPos, &pIter->poslist);
218947 static void fts5IterSetOutputCb(int *pRc, Fts5Iter *pIter){
218948 if( *pRc==SQLITE_OK ){
218970 sqlite3Fts5BufferSize(pRc, &pIter->poslist, pConfig->nCol);
221783 static void fts5DebugRowid(int *pRc, Fts5Buffer *pBuf, i64 iKey){
221789 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{averages} ");
221791 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{structure}");
221795 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "{%ssegid=%d h=%d pgno=%d}",
221802 int *pRc, /* IN/OUT: error code */
221810 sqlite3Fts5BufferAppendPrintf(pRc, pBuf,
221815 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " {id=%d leaves=%d..%d}",
221819 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "}");
221831 int *pRc, /* IN/OUT: error code */
221840 *pRc = rc;
221844 fts5DebugStructure(pRc, pBuf, p);
221856 int *pRc, /* IN/OUT: error code */
221866 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, "%s%d", zSpace, (int)iVal);
221878 static int fts5DecodePoslist(int *pRc, Fts5Buffer *pBuf, const u8 *a, int n){
221883 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " %d", iVal);
221896 static int fts5DecodeDoclist(int *pRc, Fts5Buffer *pBuf, const u8 *a, int n){
221902 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " id=%lld", iDocid);
221908 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " nPos=%d%s", nPos, bDel?"*":"");
221909 iOff += fts5DecodePoslist(pRc, pBuf, &a[iOff], MIN(n-iOff, nPos));
221914 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " id=%lld", iDocid);
221935 int *pRc, /* IN/OUT: Error code */
221958 sqlite3Fts5BufferAppendPrintf(pRc, pBuf, " %lld%s", iRowid, zApp);
223787 int *pRc,
223792 int rc = *pRc;
223799 *pRc = rc;
225328 int *pRc, /* IN/OUT: Error code */
225332 if( *pRc==SQLITE_OK ){
225333 *pRc = fts5ExecPrintf(pConfig->db, 0,