Lines Matching refs:nOrderBy
5832 int nOrderBy; /* Number of terms in the ORDER BY clause */
98340 int nOrderBy; /* Number of terms in the ORDER BY clause */
98363 nOrderBy = pOrderBy->nExpr;
98372 for(j=0, pItem=pOrderBy->a; j<nOrderBy; j++, pItem++){
98376 if( j==nOrderBy ){
98382 if( pOrderBy ) pOrderBy->a[nOrderBy++].iOrderByCol = (u16)i;
98394 aPermute = sqlite3DbMallocRaw(db, sizeof(int)*nOrderBy);
98397 for(i=0, pItem=pOrderBy->a; i<nOrderBy; i++, pItem++){
98402 sqlite3DbMallocRaw(db, sizeof(*pKeyMerge)+nOrderBy*(sizeof(CollSeq*)+1));
98404 pKeyMerge->aSortOrder = (u8*)&pKeyMerge->aColl[nOrderBy];
98405 pKeyMerge->nField = (u16)nOrderBy;
98407 for(i=0; i<nOrderBy; i++){
98439 assert( nOrderBy>=nExpr || db->mallocFailed );
98618 sqlite3VdbeAddOp4(v, OP_Compare, destA.iSdst, destB.iSdst, nOrderBy,
106092 for(i=0; i<p->nOrderBy; i++){
106485 int nOrderBy;
106506 nOrderBy = 0;
106514 nOrderBy = n;
106522 + sizeof(*pIdxOrderBy)*nOrderBy );
106536 pUsage = (struct sqlite3_index_constraint_usage*)&pIdxOrderBy[nOrderBy];
106538 *(int*)&pIdxInfo->nOrderBy = nOrderBy;
106569 for(i=0; i<nOrderBy; i++){
106651 int nOrderBy;
106741 nOrderBy = pIdxInfo->nOrderBy;
106743 pIdxInfo->nOrderBy = 0;
106811 p->cost.plan.nOBSat = nOrderBy;
106816 pIdxInfo->nOrderBy = nOrderBy;
107545 int nOrderBy; /* Number of ORDER BY terms */
107598 nOrderBy = p->pOrderBy ? p->pOrderBy->nExpr : 0;
107601 bSortInit = nPriorSat<nOrderBy;
107605 bSortInit = nOrderBy>0;
107786 if( nOrderBy==pc.plan.nOBSat ){
107940 double m = estLog(pc.plan.nRow*(nOrderBy - pc.plan.nOBSat)/nOrderBy);
120773 if( pInfo->nOrderBy==1 ){
124809 if( pInfo->nOrderBy==1