Home
last modified time | relevance | path

Searched refs:nExpr (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/lib/libsqlite/src/
H A Dselect.c316 zSortOrder = sqliteMalloc( pOrderBy->nExpr + 1 ); in pushOntoSorter()
318 for(i=0; i<pOrderBy->nExpr; i++){ in pushOntoSorter()
339 zSortOrder[pOrderBy->nExpr] = 0; in pushOntoSorter()
340 sqliteVdbeOp3(v, OP_SortMakeKey, pOrderBy->nExpr, 0, zSortOrder, P3_DYNAMIC); in pushOntoSorter()
355 int nColumn = pEList->nExpr; in sqliteAddKeyType()
422 hasDistinct = distinct>=0 && pEList && pEList->nExpr>0; in selectInnerLoop()
434 nColumn = pEList->nExpr; in selectInnerLoop()
435 for(i=0; i<pEList->nExpr; i++){ in selectInnerLoop()
446 sqliteVdbeAddOp(v, OP_IsNull, -pEList->nExpr, sqliteVdbeCurrentAddr(v)+7); in selectInnerLoop()
448 sqliteVdbeAddOp(v, OP_MakeKey, pEList->nExpr, 1); in selectInnerLoop()
[all …]
H A Dexpr.c156 pNew->nExpr = pNew->nAlloc = p->nExpr; in sqliteExprListDup()
157 pNew->a = pItem = sqliteMalloc( p->nExpr*sizeof(p->a[0]) ); in sqliteExprListDup()
162 for(i=0; i<p->nExpr; i++, pItem++){ in sqliteExprListDup()
257 if( pList->nAlloc<=pList->nExpr ){ in sqliteExprListAppend()
262 pList->nExpr = pList->nAlloc = 0; in sqliteExprListAppend()
268 struct ExprList_item *pItem = &pList->a[pList->nExpr++]; in sqliteExprListAppend()
285 assert( pList->a!=0 || (pList->nExpr==0 && pList->nAlloc==0) ); in sqliteExprListDelete()
286 assert( pList->nExpr<=pList->nAlloc ); in sqliteExprListDelete()
287 for(i=0; i<pList->nExpr; i++){ in sqliteExprListDelete()
321 for(i=0; i<p->pList->nExpr; i++){ in sqliteExprIsConstant()
[all …]
H A Dwhere.c138 for(i=0; i<p->pList->nExpr; i++){ in exprTableUsage()
226 assert( pOrderBy->nExpr>0 ); in findSortingIndex()
228 for(i=0; i<pOrderBy->nExpr; i++){ in findSortingIndex()
253 int nExpr = pOrderBy->nExpr; in findSortingIndex() local
254 if( pIdx->nColumn < nEqCol || pIdx->nColumn < nExpr ) continue; in findSortingIndex()
257 if( j<nExpr && pOrderBy->a[j].pExpr->iColumn==pIdx->aiColumn[i] ){ j++; } in findSortingIndex()
260 for(i=0; i+j<nExpr; i++){ in findSortingIndex()
263 if( i+j>=nExpr ){ in findSortingIndex()
391 int nExpr; /* Number of subexpressions in the WHERE clause */ in sqliteWhereBegin() local
412 nExpr = exprSplit(ARRAYSIZE(aExpr), aExpr, pWhere); in sqliteWhereBegin()
[all …]
H A Dattach.c287 for(i=0; i<pList->nExpr; i++){ in sqliteFixExprList()
H A Dinsert.c189 nColumn = pSelect->pEList->nExpr; in sqliteInsert()
244 nColumn = pList->nExpr; in sqliteInsert()
H A Dupdate.c116 for(i=0; i<pChanges->nExpr; i++){ in sqliteUpdate()
H A DsqliteInt.h722 int nExpr; /* Number of expressions on the list */ member
H A Dtrigger.c512 for(e=0; e<pEList->nExpr; e++){ in checkColumnOverLap()
H A Dparse.y442 if( A ) A->a[A->nExpr-1].sortOrder = C+Z;