HomeSort by relevance Sort by last modified time
    Searched refs:pExpr (Results 1 - 21 of 21) sorted by null

  /external/chromium_org/third_party/sqlite/src/src/
expr.c 18 ** Return the 'affinity' of the expression pExpr if any.
20 ** If pExpr is a column, a reference to a column via an 'AS' alias,
33 char sqlite3ExprAffinity(Expr *pExpr){
34 int op = pExpr->op;
36 assert( pExpr->flags&EP_xIsSelect );
37 return sqlite3ExprAffinity(pExpr->x.pSelect->pEList->a[0].pExpr);
41 assert( !ExprHasProperty(pExpr, EP_IntValue) );
42 return sqlite3AffinityType(pExpr->u.zToken);
46 && pExpr->pTab!=
    [all...]
walker.c 39 int sqlite3WalkExpr(Walker *pWalker, Expr *pExpr){
41 if( pExpr==0 ) return WRC_Continue;
42 testcase( ExprHasProperty(pExpr, EP_TokenOnly) );
43 testcase( ExprHasProperty(pExpr, EP_Reduced) );
44 rc = pWalker->xExprCallback(pWalker, pExpr);
46 && !ExprHasAnyProperty(pExpr,EP_TokenOnly) ){
47 if( sqlite3WalkExpr(pWalker, pExpr->pLeft) ) return WRC_Abort;
48 if( sqlite3WalkExpr(pWalker, pExpr->pRight) ) return WRC_Abort;
49 if( ExprHasProperty(pExpr, EP_xIsSelect) ){
50 if( sqlite3WalkSelect(pWalker, pExpr->x.pSelect) ) return WRC_Abort
    [all...]
resolve.c 22 ** Turn the pExpr expression into an alias for the iCol-th column of the
52 Expr *pExpr, /* Transform this into an alias to the result set */
60 pOrig = pEList->a[iCol].pExpr;
86 if( pExpr->flags & EP_ExpCollate ){
87 pDup->pColl = pExpr->pColl;
95 ExprSetProperty(pExpr, EP_Static);
96 sqlite3ExprDelete(db, pExpr);
97 memcpy(pExpr, pDup, sizeof(*pExpr));
103 ** that name in the set of source tables in pSrcList and make the pExpr
    [all...]
parse.y 279 v.pExpr = sqlite3PExpr(pParse, TK_UMINUS, X.pExpr, 0, 0);
298 ccons ::= CHECK LP expr(X) RP. {sqlite3AddCheckConstraint(pParse,X.pExpr);}
350 {sqlite3AddCheckConstraint(pParse,E.pExpr);}
448 A = sqlite3ExprListAppend(pParse, P, X.pExpr);
547 on_opt(N) ::= ON expr(E). {N = E.pExpr;}
588 sortitem(A) ::= expr(X). {A = X.pExpr;}
604 having_opt(A) ::= HAVING expr(X). {A = X.pExpr;}
620 limit_opt(A) ::= LIMIT expr(X). {A.pLimit = X.pExpr; A.pOffset = 0;}
622 {A.pLimit = X.pExpr; A.pOffset = Y.pExpr;
    [all...]
auth.c 97 ** If SQLITE_IGNORE is returned and pExpr is not NULL, then pExpr is changed
98 ** to an SQL NULL expression. Otherwise, if pExpr is NULL, then SQLITE_IGNORE
126 ** The pExpr should be a TK_COLUMN expression. The table referred to
136 Expr *pExpr, /* The expression to check authorization on */
138 SrcList *pTabList /* All table that pExpr might refer to */
155 assert( pExpr->op==TK_COLUMN || pExpr->op==TK_TRIGGER );
156 if( pExpr->op==TK_TRIGGER ){
161 if( pExpr->iTable==pTabList->a[iSrc].iCursor )
    [all...]
attach.c 29 ** This only applies to the root node of pExpr, so the statement:
35 static int resolveAttachExpr(NameContext *pName, Expr *pExpr)
38 if( pExpr ){
39 if( pExpr->op!=TK_ID ){
40 rc = sqlite3ResolveExprNames(pName, pExpr);
41 if( rc==SQLITE_OK && !sqlite3ExprIsConstant(pExpr) ){
42 sqlite3ErrorMsg(pName->pParse, "invalid name: \"%s\"", pExpr->u.zToken);
46 pExpr->op = TK_STRING;
492 Expr *pExpr /* The expression to be fixed to one database */
494 while( pExpr ){
    [all...]
where.c 73 ** categories, then eOperator==0. The WhereTerm.pExpr field is still set
95 Expr *pExpr; /* Pointer to the subexpression that is this term */
107 Bitmask prereqRight; /* Bitmask of tables used by pExpr->pRight */
108 Bitmask prereqAll; /* Bitmask of tables referenced by pExpr */
114 #define TERM_DYNAMIC 0x01 /* Need to call sqlite3ExprDelete(db, pExpr) */
302 sqlite3ExprDelete(db, a->pExpr);
356 pTerm->pExpr = p;
373 ** The original WHERE clause in pExpr is unaltered. All this routine
374 ** does is make slot[] entries point to substructure within pExpr.
380 static void whereSplit(WhereClause *pWC, Expr *pExpr, int op)
    [all...]
select.c 647 p->affinity = sqlite3CompareAffinity(pEList->a[0].pExpr, pDest->affinity);
763 pColl = sqlite3ExprCollSeq(pParse, pItem->pExpr);
    [all...]
vdbemem.c 1007 ** Create a new sqlite3_value object, containing the value of pExpr.
1018 Expr *pExpr, /* The expression to evaluate */
1029 if( !pExpr ){
1033 op = pExpr->op;
1040 if( op==TK_REGISTER ) op = pExpr->op2;
1042 if( NEVER(op==TK_REGISTER) ) op = pExpr->op2;
1049 && (pExpr->pLeft->op==TK_INTEGER || pExpr->pLeft->op==TK_FLOAT) ){
1050 pExpr = pExpr->pLeft
    [all...]
update.c 195 if( sqlite3ResolveExprNames(&sNC, pChanges->a[i].pExpr) ){
202 pRowidExpr = pChanges->a[i].pExpr;
211 pRowidExpr = pChanges->a[i].pExpr;
430 sqlite3ExprCode(pParse, pChanges->a[j].pExpr, regNew+i);
605 Expr *pExpr; /* Temporary expression */
625 pExpr = sqlite3ExprDup(db, pChanges->a[aXRef[i]].pExpr, 0);
627 pExpr = sqlite3Expr(db, TK_ID, pTab->aCol[i].zName);
629 pEList = sqlite3ExprListAppend(pParse, pEList, pExpr);
insert.c 675 if( sqlite3ResolveExprNames(&sNC, pList->a[i].pExpr) ){
826 sqlite3ExprCode(pParse, pList->a[keyColumn].pExpr, regCols);
855 sqlite3ExprCodeAndCache(pParse, pList->a[j].pExpr, regCols+i+1);
893 sqlite3ExprCode(pParse, pList->a[keyColumn].pExpr, regRowid);
    [all...]
sqliteInt.h     [all...]
vtab.c 844 ** second parameter (pExpr) is the first argument to this function.
845 ** If pExpr is a column in a virtual table, then let the virtual
859 Expr *pExpr /* First argument to the function */
873 if( NEVER(pExpr==0) ) return pDef;
874 if( pExpr->op!=TK_COLUMN ) return pDef;
875 pTab = pExpr->pTab;
build.c     [all...]
  /external/chromium_org/third_party/sqlite/src/ext/fts3/
fts3_snippet.c 139 Fts3Expr *pExpr, /* Expression to iterate phrases of */
145 int eType = pExpr->eType; /* Type of expression node pExpr */
148 assert( pExpr->pLeft && pExpr->pRight );
149 rc = fts3ExprIterate2(pExpr->pLeft, piPhrase, x, pCtx);
151 rc = fts3ExprIterate2(pExpr->pRight, piPhrase, x, pCtx);
154 rc = x(pExpr, *piPhrase, pCtx);
171 Fts3Expr *pExpr, /* Expression to iterate phrases of */
176 return fts3ExprIterate2(pExpr, &iPhrase, x, pCtx)
    [all...]
fts3.c     [all...]
fts3_expr.c 797 static char *exprToString(Fts3Expr *pExpr, char *zBuf){
798 switch( pExpr->eType ){
800 Fts3Phrase *pPhrase = pExpr->pPhrase;
814 zBuf = sqlite3_mprintf("%zNEAR/%d ", zBuf, pExpr->nNear);
828 if( zBuf ) zBuf = exprToString(pExpr->pLeft, zBuf);
831 if( zBuf ) zBuf = exprToString(pExpr->pRight, zBuf);
864 Fts3Expr *pExpr;
906 pTokenizer, azCol, nCol, nCol, zExpr, nExpr, &pExpr
910 }else if( rc==SQLITE_NOMEM || !(zBuf = exprToString(pExpr, 0)) ){
917 sqlite3Fts3ExprFree(pExpr);
    [all...]
fts3Int.h 167 Fts3Expr *pExpr; /* Parsed MATCH query string */
fts3_write.c     [all...]
  /external/chromium_org/third_party/sqlite/src/ext/icu/
icu.c 221 URegularExpression *pExpr = (URegularExpression *)p;
222 uregex_close(pExpr);
246 URegularExpression *pExpr;
259 pExpr = sqlite3_get_auxdata(p, 0);
260 if( !pExpr ){
265 pExpr = uregex_open(zPattern, -1, 0, 0, &status);
268 sqlite3_set_auxdata(p, 0, pExpr, icuRegexpDelete);
270 assert(!pExpr);
277 uregex_setText(pExpr, zString, -1, &status);
284 res = uregex_matches(pExpr, 0, &status)
    [all...]
  /external/chromium_org/third_party/sqlite/amalgamation/
sqlite3.c     [all...]

Completed in 4288 milliseconds