Home
last modified time | relevance | path

Searched refs:bDesc (Results 1 – 10 of 10) sorted by relevance

/sqlite-3.40.0/ext/fts5/
H A Dfts5_expr.c280 pNew->bDesc = 0; in sqlite3Fts5ExprNew()
439 assert( bDesc==0 || bDesc==1 ); in fts5ExprSynonymRowid()
443 if( bRetValid==0 || (bDesc!=(iRowid<iRet)) ){ in fts5ExprSynonymRowid()
788 if( (bDesc==0 && iLast>iRowid) || (bDesc && iLast<iRowid) ){ in fts5ExprAdvanceto()
796 assert( (bDesc==0 && iRowid>=iLast) || (bDesc==1 && iRowid<=iLast) ); in fts5ExprAdvanceto()
817 if( (bDesc==0 && iLast>iRowid) || (bDesc && iLast<iRowid) ){ in fts5ExprSynonymAdvanceto()
827 *piLast = fts5ExprSynonymRowid(pTerm, bDesc, &bEof); in fts5ExprSynonymAdvanceto()
959 assert( pExpr->bDesc==0 || pExpr->bDesc==1 ); in fts5RowidCmp()
960 if( pExpr->bDesc==0 ){ in fts5RowidCmp()
1039 const int bDesc = pExpr->bDesc; in fts5ExprNodeTest_STRING() local
[all …]
H A Dfts5_main.c721 return (pCsr->bDesc) ? FTS5_STMT_SCAN_DESC : FTS5_STMT_SCAN_ASC; in fts5StmtType()
871 int bDesc = pCsr->bDesc; in fts5CursorReseek() local
983 int bDesc in fts5CursorFirstSorted() argument
1012 bDesc ? "DESC" : "ASC" in fts5CursorFirstSorted()
1315 pCsr->bDesc = bDesc = ((idxNum & FTS5_BI_ORDER_DESC) ? 1 : 0); in fts5FilterMethod()
1324 if( bDesc ){ in fts5FilterMethod()
1340 assert( nVal==0 && bOrderByRank==0 && bDesc==0 ); in fts5FilterMethod()
1343 if( pTab->pSortCsr->bDesc ){ in fts5FilterMethod()
1352 rc = fts5CursorFirst(pTab, pCsr, bDesc); in fts5FilterMethod()
1358 rc = fts5CursorFirstSorted(pTab, pCsr, bDesc); in fts5FilterMethod()
[all …]
H A Dfts5Int.h727 int sqlite3Fts5ExprFirst(Fts5Expr*, Fts5Index *pIdx, i64 iMin, int bDesc);
H A Dfts5_index.c3555 int bDesc, /* True for descending rowid order */ in fts5MultiIterNew2() argument
3569 if( bDesc ){ in fts5MultiIterNew2()
5202 int bDesc, /* True for "ORDER BY rowid DESC" */ in fts5SetupPrefixIter() argument
5323 fts5MultiIterNew2(p, pData, bDesc, ppIter); in fts5SetupPrefixIter()
5609 int bDesc = (flags & FTS5INDEX_QUERY_DESC)!=0; in sqlite3Fts5IndexQuery() local
5610 fts5SetupPrefixIter(p, bDesc, iPrefixIdx, buf.p, nToken+1, pColset,&pRet); in sqlite3Fts5IndexQuery()
/sqlite-3.40.0/ext/repair/
H A Dcheckindex.c56 int bDesc; /* True for DESC columns, otherwise false */ member
499 p->bDesc = sqlite3_column_int(pInfo, 3); in cidxLookupIndex()
621 zSep, aCol[iGt].zExpr, (aCol[iGt].bDesc ? "<" : ">"), in cidxWhere()
655 assert( pIdx->aCol[i].bDesc==0 || pIdx->aCol[i].bDesc==1 ); in cidxColumnList()
659 zRet = cidxMprintf(pRc, "%z%s%d%s", zRet, zSep, i+1, aDir[p->bDesc]); in cidxColumnList()
752 if( pIdx->aCol[i].bDesc && azAfter[i]==0 ) continue; in cidxGenerateScanSql()
765 if( pIdx->aCol[i].bDesc==0 ) break; in cidxGenerateScanSql()
/sqlite-3.40.0/ext/fts3/
H A Dfts3.c3344 pCsr->bDesc = (idxStr[0]=='D'); in fts3FilterMethod()
3346 pCsr->bDesc = p->bDescIdx; in fts3FilterMethod()
3387 (pCsr->bDesc ? "DESC" : "ASC") in fts3FilterMethod()
3391 p->zReadExprlist, (pCsr->bDesc ? "DESC" : "ASC") in fts3FilterMethod()
4434 && pCsr->bDesc==pTab->bDescIdx in fts3EvalPhraseStart()
4708 int bDescDoclist = pCsr->bDesc; in fts3EvalIncrPhraseNext()
4800 }else if( pCsr->bDesc!=pTab->bDescIdx && pDL->nAll ){ in fts3EvalPhraseNext()
5291 int bDescDoclist = pCsr->bDesc; /* Used by DOCID_CMP() macro */ in fts3EvalNextRow()
5676 (pCsr->bDesc==0 && pCsr->iPrevId>pCsr->iMaxDocid) in fts3EvalNext()
5677 || (pCsr->bDesc!=0 && pCsr->iPrevId<pCsr->iMinDocid) in fts3EvalNext()
[all …]
H A Dfts3Int.h344 u8 bDesc; /* True to sort in descending order */ member
/sqlite-3.40.0/test/
H A Dfts3rnd.test165 proc simple_token_matchinfo {zToken bDesc} {
175 if {$bDesc} { set dir -dec }
/sqlite-3.40.0/ext/expert/
H A Dsqlite3expert.c69 int bDesc; /* True if ORDER BY <expr> DESC */ member
507 pNew->bDesc = pIdxInfo->aOrderBy[i].desc; in expertBestIndex()
867 if( pCons->bDesc ){ in idxAppendColDefn()
/sqlite-3.40.0/ext/rbu/
H A Dsqlite3rbu.c1711 int bDesc = sqlite3_column_int(pXInfo, 3); in rbuObjIterGetIndexCols() local
1745 const char *zOrder = (bDesc ? " DESC" : ""); in rbuObjIterGetIndexCols()
2073 int bDesc = sqlite3_column_int(pXInfo, 3); in rbuCreateImposterTable2() local
2078 zPk = rbuMPrintf(p, "%z%sc%d%s", zPk, zComma, iCid, bDesc?" DESC":""); in rbuCreateImposterTable2()