Home
last modified time | relevance | path

Searched refs:pOrderBy (Results 1 – 4 of 4) sorted by relevance

/titanic_50/usr/src/lib/libsqlite/src/
H A Dselect.c33 ExprList *pOrderBy, /* the ORDER BY clause */ in sqliteSelectNew() argument
46 sqliteExprListDelete(pOrderBy); in sqliteSelectNew()
56 pNew->pOrderBy = pOrderBy; in sqliteSelectNew()
297 sqliteExprListDelete(p->pOrderBy); in sqliteSelectDelete()
317 static void pushOntoSorter(Parse *pParse, Vdbe *v, ExprList *pOrderBy){ in pushOntoSorter() argument
320 zSortOrder = sqliteMalloc( pOrderBy->nExpr + 1 ); in pushOntoSorter()
322 for(i=0; i<pOrderBy->nExpr; i++){ in pushOntoSorter()
323 int order = pOrderBy->a[i].sortOrder; in pushOntoSorter()
331 type = sqliteExprType(pOrderBy->a[i].pExpr); in pushOntoSorter()
341 sqliteExprCode(pParse, pOrderBy->a[i].pExpr); in pushOntoSorter()
[all …]
H A Dwhere.c218 ExprList *pOrderBy, /* The ORDER BY clause */ in findSortingIndex() argument
228 assert( pOrderBy!=0 ); in findSortingIndex()
229 assert( pOrderBy->nExpr>0 ); in findSortingIndex()
230 sortOrder = pOrderBy->a[0].sortOrder & SQLITE_SO_DIRMASK; in findSortingIndex()
231 for(i=0; i<pOrderBy->nExpr; i++){ in findSortingIndex()
233 if( (pOrderBy->a[i].sortOrder & SQLITE_SO_DIRMASK)!=sortOrder ){ in findSortingIndex()
238 if( (pOrderBy->a[i].sortOrder & SQLITE_SO_TYPEMASK)!=SQLITE_SO_UNK ){ in findSortingIndex()
242 p = pOrderBy->a[i].pExpr; in findSortingIndex()
256 int nExpr = pOrderBy->nExpr; in findSortingIndex()
260 if( j<nExpr && pOrderBy->a[j].pExpr->iColumn==pIdx->aiColumn[i] ){ j++; } in findSortingIndex()
[all …]
H A DsqliteInt.h861 ExprList *pOrderBy; /* The ORDER BY clause */ member
H A Dexpr.c235 pNew->pOrderBy = sqliteExprListDup(p->pOrderBy); in sqliteSelectDup()