Home
last modified time | relevance | path

Searched refs:pSort (Results 1 – 2 of 2) sorted by relevance

/sqlite-3.40.0/src/
H A Dselect.c668 SortCtx *pSort, in makeSorterRecord() argument
775 sqlite3VdbeAddOp2(v, OP_Gosub, pSort->regReturn, pSort->labelBkOut); in pushOntoSorter()
1119 if( pSort && pSort->pOrderBy==0 ) pSort = 0; in selectInnerLoop()
1130 if( pSort ){ in selectInnerLoop()
1175 for(i=pSort->nOBSat; i<pSort->pOrderBy->nExpr; i++){ in selectInnerLoop()
1249 if( pSort==0 ){ in selectInnerLoop()
1307 if( pSort ){ in selectInnerLoop()
1322 if( pSort ){ in selectInnerLoop()
1351 if( pSort ){ in selectInnerLoop()
1383 if( pSort ){ in selectInnerLoop()
[all …]
H A Dwindow.c971 ExprList *pSort = 0; in sqlite3WindowRewrite() local
1003 pSort = exprListAppendList(pParse, 0, pMWin->pPartition, 1); in sqlite3WindowRewrite()
1004 pSort = exprListAppendList(pParse, pSort, pMWin->pOrderBy, 1); in sqlite3WindowRewrite()
1005 if( pSort && p->pOrderBy && p->pOrderBy->nExpr<=pSort->nExpr ){ in sqlite3WindowRewrite()
1006 int nSave = pSort->nExpr; in sqlite3WindowRewrite()
1007 pSort->nExpr = p->pOrderBy->nExpr; in sqlite3WindowRewrite()
1008 if( sqlite3ExprListCompare(pSort, p->pOrderBy, -1)==0 ){ in sqlite3WindowRewrite()
1012 pSort->nExpr = nSave; in sqlite3WindowRewrite()
1070 pParse, pSublist, pSrc, pWhere, pGroupBy, pHaving, pSort, 0, 0 in sqlite3WindowRewrite()