Lines Matching refs:bDesc

148779   u8 bDesc;                       /* True to sort in descending order */
152035 pCsr->bDesc = (idxStr[0]=='D');
152037 pCsr->bDesc = p->bDescIdx;
152078 (pCsr->bDesc ? "DESC" : "ASC")
152082 p->zReadExprlist, (pCsr->bDesc ? "DESC" : "ASC")
153084 && pCsr->bDesc==pTab->bDescIdx
153357 int bDescDoclist = pCsr->bDesc;
153448 }else if( pCsr->bDesc!=pTab->bDescIdx && pDL->nAll ){
153937 int bDescDoclist = pCsr->bDesc; /* Used by DOCID_CMP() macro */
154319 (pCsr->bDesc==0 && pCsr->iPrevId>pCsr->iMaxDocid)
154320 || (pCsr->bDesc!=0 && pCsr->iPrevId<pCsr->iMinDocid)
154657 if( pCsr->bDesc==bDescDoclist ){
174175 int bDesc = sqlite3_column_int(pXInfo, 3);
174201 const char *zOrder = (bDesc ? " DESC" : "");
174529 int bDesc = sqlite3_column_int(pXInfo, 3);
174534 zPk = rbuMPrintf(p, "%z%sc%d%s", zPk, zComma, iCid, bDesc?" DESC":"");
187276 static int sqlite3Fts5ExprFirst(Fts5Expr*, Fts5Index *pIdx, i64 iMin, int bDesc);
190923 int bDesc; /* Iterate in descending rowid order */
191193 static i64 fts5ExprSynonymRowid(Fts5ExprTerm *pTerm, int bDesc, int *pbEof){
191199 assert( bDesc==0 || bDesc==1 );
191203 if( bRetValid==0 || (bDesc!=(iRowid<iRet)) ){
191539 int bDesc, /* True if iterator is "rowid DESC" */
191548 if( (bDesc==0 && iLast>iRowid) || (bDesc && iLast<iRowid) ){
191556 assert( (bDesc==0 && iRowid>=iLast) || (bDesc==1 && iRowid<=iLast) );
191565 int bDesc, /* True if iterator is "rowid DESC" */
191577 if( (bDesc==0 && iLast>iRowid) || (bDesc && iLast<iRowid) ){
191587 *piLast = fts5ExprSynonymRowid(pTerm, bDesc, &bEof);
191681 (pExpr->bDesc ? FTS5INDEX_QUERY_DESC : 0),
191719 assert( pExpr->bDesc==0 || pExpr->bDesc==1 );
191720 if( pExpr->bDesc==0 ){
191799 const int bDesc = pExpr->bDesc;
191813 iLast = fts5ExprSynonymRowid(&pLeft->aTerm[0], bDesc, 0);
191825 i64 iRowid = fts5ExprSynonymRowid(pTerm, bDesc, 0);
191828 if( fts5ExprSynonymAdvanceto(pTerm, bDesc, &iLast, &rc) ){
191837 if( fts5ExprAdvanceto(pIter, bDesc, &iLast, &rc, &pNode->bEof) ){
191874 i64 iRowid = fts5ExprSynonymRowid(pTerm, pExpr->bDesc, 0);
191882 || (bFromValid && ii!=iFrom && (ii>iFrom)==pExpr->bDesc)
192247 static int sqlite3Fts5ExprFirst(Fts5Expr *p, Fts5Index *pIdx, i64 iFirst, int bDesc){
192252 p->bDesc = bDesc;
197725 int bDesc, /* True for descending rowid order */
197739 if( bDesc ){
199281 int bDesc, /* True for "ORDER BY rowid DESC" */
199365 fts5MultiIterNew2(p, pData, bDesc, ppIter);
199640 int bDesc = (flags & FTS5INDEX_QUERY_DESC)!=0;
199642 fts5SetupPrefixIter(p, bDesc, buf.p, nToken+1, pColset, &pRet);
200939 int bDesc; /* True for "ORDER BY rowid DESC" queries */
201411 return (pCsr->bDesc) ? FTS5_STMT_SCAN_DESC : FTS5_STMT_SCAN_ASC;
201560 int bDesc = pCsr->bDesc;
201563 rc = sqlite3Fts5ExprFirst(pCsr->pExpr, pTab->pIndex, iRowid, bDesc);
201660 static int fts5CursorFirstSorted(Fts5Table *pTab, Fts5Cursor *pCsr, int bDesc){
201688 bDesc ? "DESC" : "ASC"
201708 static int fts5CursorFirst(Fts5Table *pTab, Fts5Cursor *pCsr, int bDesc){
201711 rc = sqlite3Fts5ExprFirst(pExpr, pTab->pIndex, pCsr->iFirstRowid, bDesc);
201893 int bDesc; /* True if ORDER BY [rank|rowid] DESC */
201935 pCsr->bDesc = bDesc = ((idxNum & FTS5_BI_ORDER_DESC) ? 1 : 0);
201944 if( bDesc ){
201960 assert( nVal==0 && pMatch==0 && bOrderByRank==0 && bDesc==0 );
201965 rc = fts5CursorFirst(pTab, pCsr, bDesc);
201983 rc = fts5CursorFirstSorted(pTab, pCsr, bDesc);
201986 rc = fts5CursorFirst(pTab, pCsr, bDesc);