Home
last modified time | relevance | path

Searched refs:pExpr (Results 1 – 8 of 8) sorted by relevance

/titanic_50/usr/src/lib/libsqlite/src/
H A Dexpr.c59 void sqliteExprSpan(Expr *pExpr, Token *pLeft, Token *pRight){ in sqliteExprSpan() argument
63 if( pExpr && pRight->z && pLeft->z ){ in sqliteExprSpan()
65 pExpr->span.z = pLeft->z; in sqliteExprSpan()
66 pExpr->span.n = pRight->n + Addr(pRight->z) - Addr(pLeft->z); in sqliteExprSpan()
68 pExpr->span.z = 0; in sqliteExprSpan()
167 pItem->pExpr = pNewExpr = sqliteExprDup(pOldExpr = p->a[i].pExpr); in sqliteExprListDup()
251 ExprList *sqliteExprListAppend(ExprList *pList, Expr *pExpr, Token *pName){ in sqliteExprListAppend() argument
270 if( pExpr || pName ){ in sqliteExprListAppend()
273 pItem->pExpr = pExpr; in sqliteExprListAppend()
291 sqliteExprDelete(pList->a[i].pExpr); in sqliteExprListDelete()
[all …]
H A Dauth.c108 Expr *pExpr, /* The expression to check authorization on */ in sqliteAuthRead() argument
119 assert( pExpr->op==TK_COLUMN ); in sqliteAuthRead()
121 if( pExpr->iTable==pTabList->a[iSrc].iCursor ) break; in sqliteAuthRead()
132 assert( pExpr->iTable==pStack->newIdx || pExpr->iTable==pStack->oldIdx ); in sqliteAuthRead()
136 if( pExpr->iColumn>=0 ){ in sqliteAuthRead()
137 assert( pExpr->iColumn<pTab->nCol ); in sqliteAuthRead()
138 zCol = pTab->aCol[pExpr->iColumn].zName; in sqliteAuthRead()
145 assert( pExpr->iDb<db->nDb ); in sqliteAuthRead()
146 zDBase = db->aDb[pExpr->iDb].zName; in sqliteAuthRead()
150 pExpr->op = TK_NULL; in sqliteAuthRead()
[all …]
H A Dselect.c331 type = sqliteExprType(pOrderBy->a[i].pExpr); in pushOntoSorter()
341 sqliteExprCode(pParse, pOrderBy->a[i].pExpr); in pushOntoSorter()
364 zType[i] = sqliteExprType(pEList->a[i].pExpr)==SQLITE_SO_NUM ? 'n' : 't'; in sqliteAddKeyType()
440 sqliteExprCode(pParse, pEList->a[i].pExpr); in selectInnerLoop()
670 Expr *p = pEList->a[i].pExpr; in generateColumnTypes()
720 p = pEList->a[i].pExpr; in generateColumnNames()
812 }else if( (p=pEList->a[i].pExpr)->op==TK_DOT in sqliteResultSetOfSelect()
937 Expr *pE = pEList->a[k].pExpr; in fillInColumnList()
952 Expr *pE = a[k].pExpr; in fillInColumnList()
957 pNew = sqliteExprListAppend(pNew, a[k].pExpr, 0); in fillInColumnList()
[all …]
H A Dwhere.c69 static int exprSplit(int nSlot, ExprInfo *aSlot, Expr *pExpr){ in exprSplit() argument
71 if( pExpr==0 || nSlot<1 ) return 0; in exprSplit()
72 if( nSlot==1 || pExpr->op!=TK_AND ){ in exprSplit()
73 aSlot[0].p = pExpr; in exprSplit()
76 if( pExpr->pLeft->op!=TK_AND ){ in exprSplit()
77 aSlot[0].p = pExpr->pLeft; in exprSplit()
78 cnt = 1 + exprSplit(nSlot-1, &aSlot[1], pExpr->pRight); in exprSplit()
80 cnt = exprSplit(nSlot, aSlot, pExpr->pLeft); in exprSplit()
81 cnt += exprSplit(nSlot-cnt, &aSlot[cnt], pExpr->pRight); in exprSplit()
142 mask |= exprTableUsage(pMaskSet, p->pList->a[i].pExpr); in exprTableUsage()
[all …]
H A Dattach.c268 Expr *pExpr /* The expression to be fixed to one database */ in sqliteFixExpr() argument
270 while( pExpr ){ in sqliteFixExpr()
271 if( sqliteFixSelect(pFix, pExpr->pSelect) ){ in sqliteFixExpr()
274 if( sqliteFixExprList(pFix, pExpr->pList) ){ in sqliteFixExpr()
277 if( sqliteFixExpr(pFix, pExpr->pRight) ){ in sqliteFixExpr()
280 pExpr = pExpr->pLeft; in sqliteFixExpr()
291 if( sqliteFixExpr(pFix, pList->a[i].pExpr) ){ in sqliteFixExprList()
H A Dupdate.c120 if( sqliteExprResolveIds(pParse, pTabList, 0, pChanges->a[i].pExpr) ){ in sqliteUpdate()
123 if( sqliteExprCheck(pParse, pChanges->a[i].pExpr, 0, 0) ){ in sqliteUpdate()
130 pRecnoExpr = pChanges->a[i].pExpr; in sqliteUpdate()
139 pRecnoExpr = pChanges->a[i].pExpr; in sqliteUpdate()
296 sqliteExprCode(pParse, pChanges->a[j].pExpr); in sqliteUpdate()
374 sqliteExprCode(pParse, pChanges->a[j].pExpr); in sqliteUpdate()
H A Dinsert.c250 if( sqliteExprResolveIds(pParse, &dummy, 0, pList->a[i].pExpr) ){ in sqliteInsert()
253 if( sqliteExprCheck(pParse, pList->a[i].pExpr, 0, 0) ){ in sqliteInsert()
372 sqliteExprCode(pParse, pList->a[keyColumn].pExpr); in sqliteInsert()
396 sqliteExprCode(pParse, pList->a[j].pExpr); in sqliteInsert()
430 sqliteExprCode(pParse, pList->a[keyColumn].pExpr); in sqliteInsert()
469 sqliteExprCode(pParse, pList->a[j].pExpr); in sqliteInsert()
H A DsqliteInt.h728 Expr *pExpr; /* The list of expressions */ member
903 Expr *pExpr; /* The expression */ member