Searched refs:pSelect (Results 1 - 24 of 24) sorted by relevance

/external/chromium_org/third_party/sqlite/src/src/
H A Dinsert.c326 Select *pSelect, /* A SELECT statement to use as the data source */
342 ** statement above, and pSelect is NULL. For the second form, pList is
343 ** NULL and pSelect is a pointer to the select statement used to generate
437 Select *pSelect, /* A SELECT statement to use as the data source */
507 isView = pTab->pSelect!=0;
540 sqlite3BeginWriteOperation(pParse, pSelect || pTrigger, iDb);
552 if( pColumn==0 && xferOptimization(pParse, pTab, pSelect, onError, iDb) ){
569 if( pSelect ){
604 rc = sqlite3Select(pParse, pSelect, &dest);
616 assert( pSelect
433 sqlite3Insert( Parse *pParse, SrcList *pTabList, ExprList *pList, Select *pSelect, IdList *pColumn, int onError ) argument
1606 xferOptimization( Parse *pParse, Table *pDest, Select *pSelect, int onError, int iDbDest ) argument
[all...]
H A Dresolve.c307 assert( pExpr->x.pSelect==0 );
591 sqlite3WalkSelect(pWalker, pExpr->x.pSelect);
664 Select *pSelect, /* The SELECT statement with the ORDER BY clause */
675 pEList = pSelect->pEList;
681 nc.pSrcList = pSelect->pSrc;
737 Select *pSelect /* The SELECT statement containing the ORDER BY */
745 pOrderBy = pSelect->pOrderBy;
757 pSelect->pNext = 0;
758 while( pSelect->pPrior ){
759 pSelect
662 resolveOrderByTermToExprList( Parse *pParse, Select *pSelect, Expr *pE ) argument
825 sqlite3ResolveOrderGroupBy( Parse *pParse, Select *pSelect, ExprList *pOrderBy, const char *zType ) argument
875 resolveOrderGroupBy( NameContext *pNC, Select *pSelect, ExprList *pOrderBy, const char *zType ) argument
[all...]
H A Dattach.c462 if( sqlite3FixSelect(pFix, pItem->pSelect) ) return 1;
471 Select *pSelect /* The SELECT statement to be fixed to one database */
473 while( pSelect ){
474 if( sqlite3FixExprList(pFix, pSelect->pEList) ){
477 if( sqlite3FixSrcList(pFix, pSelect->pSrc) ){
480 if( sqlite3FixExpr(pFix, pSelect->pWhere) ){
483 if( sqlite3FixExpr(pFix, pSelect->pHaving) ){
486 pSelect = pSelect->pPrior;
497 if( sqlite3FixSelect(pFix, pExpr->x.pSelect) ) retur
[all...]
H A Ddelete.c74 if( !viewOk && pTab->pSelect ){
99 pDup = sqlite3SelectDup(db, pView->pSelect, 0);
108 pFrom->a[0].pSelect = pDup;
145 Select *pSelect = NULL; /* Complete SELECT tree */ local
187 pSelect = sqlite3SelectNew(pParse,pEList,pSelectSrc,pWhere,0,0,
189 if( pSelect == 0 ) return 0;
197 pInClause->x.pSelect = pSelect;
204 sqlite3SelectDelete(pParse->db, pSelect);
268 isView = pTab->pSelect!
[all...]
H A Dtrigger.c26 sqlite3SelectDelete(db, pTmp->pSelect);
191 if( pTab->pSelect && tr_tm!=TK_INSTEAD ){
196 if( !pTab->pSelect && tr_tm==TK_INSTEAD ){
333 ** Turn a SELECT statement (that the pSelect parameter points to) into
339 TriggerStep *sqlite3TriggerSelectStep(sqlite3 *db, Select *pSelect){ argument
342 sqlite3SelectDelete(db, pSelect);
346 pTriggerStep->pSelect = pSelect;
387 Select *pSelect, /* A SELECT statement that supplies values */
392 assert(pEList == 0 || pSelect
382 sqlite3TriggerInsertStep( sqlite3 *db, Token *pTableName, IdList *pColumn, ExprList *pEList, Select *pSelect, u8 orconf ) argument
749 Select *pSelect = sqlite3SelectDup(db, pStep->pSelect, 0); local
[all...]
H A Dwalker.c50 if( sqlite3WalkSelect(pWalker, pExpr->x.pSelect) ) return WRC_Abort;
105 if( sqlite3WalkSelect(pWalker, pItem->pSelect) ){
H A Dselect.c415 Select *pSelect, /* The whole SELECT statement */
430 if( pSelect->iLimit ){
433 if( pSelect->iOffset ){
434 iLimit = pSelect->iOffset+1;
436 iLimit = pSelect->iLimit;
1007 pS = pTabList->a[j].pSelect;
1079 Select *pS = pExpr->x.pSelect;
1315 Select *pSelect /* SELECT used to determine types and collations */
1325 assert( pSelect!=0 );
1326 assert( (pSelect
412 pushOntoSorter( Parse *pParse, ExprList *pOrderBy, Select *pSelect, int regData ) argument
1348 sqlite3ResultSetOfSelect(Parse *pParse, Select *pSelect) argument
3405 sqlite3SelectExpand(Parse *pParse, Select *pSelect) argument
3462 sqlite3SelectAddTypeInfo(Parse *pParse, Select *pSelect) argument
[all...]
H A Dupdate.c62 if( !pTab->pSelect ){
150 isView = pTab->pSelect!=0;
604 Select *pSelect = 0; /* The SELECT statement */ local
631 pSelect = sqlite3SelectNew(pParse, pEList, pSrc, pWhere, 0, 0, 0, 0, 0, 0);
644 sqlite3Select(pParse, pSelect, &dest);
663 sqlite3SelectDelete(db, pSelect);
H A Dbuild.c540 sqlite3SelectDelete(db, pTable->pSelect);
1452 ** If the pSelect argument is not NULL, it means that this routine
1461 Select *pSelect /* Select from a "CREATE ... AS SELECT" */
1467 if( (pEnd==0 && pSelect==0) || db->mallocFailed ){
1473 assert( !db->init.busy || !pSelect );
1530 if( p->pSelect==0 ){
1555 if( pSelect ){
1564 sqlite3Select(pParse, pSelect, &dest);
1567 pSelTab = sqlite3ResultSetOfSelect(pParse, pSelect);
1579 if( pSelect ){
1665 sqlite3CreateView( Parse *pParse, Token *pBegin, Token *pName1, Token *pName2, Select *pSelect, int isTemp, int noErr ) argument
[all...]
H A Dfkey.c599 sqlite3SelectDelete(dbMem, pStep->pSelect);
624 if( (db->flags&SQLITE_ForeignKeys) && !IsVirtual(pTab) && !pTab->pSelect ){
963 Select *pSelect = 0; /* If RESTRICT, "SELECT RAISE(...)" */ local
1054 pSelect = sqlite3SelectNew(pParse,
1080 pStep->pSelect = sqlite3SelectDup(db, pSelect, EXPRDUP_REDUCE);
1093 sqlite3SelectDelete(db, pSelect);
H A Dexpr.c37 return sqlite3ExprAffinity(pExpr->x.pSelect->pEList->a[0].pExpr);
168 aff = sqlite3CompareAffinity(pExpr->x.pSelect->pEList->a[0].pExpr, aff);
319 ** Expr.pSelect member has a height of 1. Any other expression
328 heightOfSelect(p->x.pSelect, &nHeight);
625 sqlite3SelectDelete(db, p->x.pSelect);
723 ** descended from the Expr.x.pList or Expr.x.pSelect variables).
799 /* Fill in the pNew->x.pSelect or pNew->x.pList member. */
801 pNew->x.pSelect = sqlite3SelectDup(db, p->x.pSelect, isReduced);
912 pNewItem->pSelect
3655 analyzeAggregatesInSelect(Walker *pWalker, Select *pSelect) argument
[all...]
H A Dalter.c447 if( pTab->pSelect ){
771 if( pTab->pSelect ){
H A DsqliteInt.h1276 Select *pSelect; /* NULL for tables. Points to definition if a view. */ member in struct:Table
1595 ** Expr.x.pSelect is used if the expression is a sub-select or an expression of
1597 ** Expr.flags mask, then Expr.x.pSelect is valid. Otherwise, Expr.x.pList is
1634 ** the subtrees in Expr.x.pList or Expr.x.pSelect are always separately
1655 Select *pSelect; /* Used for sub-selects and "<expr> IN (<select>)" */ member in union:Expr::__anon15499
1688 #define EP_VarSelect 0x0020 /* pSelect is correlated, not constant */
1694 #define EP_xIsSelect 0x0800 /* x.pSelect is valid (otherwise x.pList is) */
1841 Select *pSelect; /* A SELECT statement used in place of a table name */ member in struct:SrcList::SrcList_item
1846 u8 iSelectId; /* If pSelect!=0, the id of the sub-select in EQP */
2338 * pSelect
2365 Select *pSelect; /* SELECT statment or RHS of INSERT INTO .. SELECT ... */ member in struct:TriggerStep
[all...]
H A Dvdbeblob.c182 if( pTab && pTab->pSelect ){
H A Dparse.y993 A.pExpr->x.pSelect = X;
1005 A.pExpr->x.pSelect = Y;
1019 A.pExpr->x.pSelect = sqlite3SelectNew(pParse, 0,pSrc,0,0,0,0,0,0,0);
1032 p->x.pSelect = Y;
H A Dwhere.c450 mask |= exprSelectTableUsage(pMaskSet, p->x.pSelect);
1124 pTerm->prereqRight = exprSelectTableUsage(pMaskSet, pExpr->x.pSelect);
3531 if( pItem->pSelect ){
4737 if( (pTab->tabFlags & TF_Ephemeral)!=0 || pTab->pSelect ){
4927 && pTab->pSelect==0
H A Dvtab.c664 && !pParse->pNewTable->pSelect
H A Dmain.c2309 if( !pTab || pTab->pSelect ){
/external/chromium_org/third_party/sqlite/src/ext/fts1/
H A Dfulltext.c1064 * (*pSelect) is used to hold an SQLite statement used inside this function;
1065 * the caller should initialize *pSelect to NULL before the first call.
1067 static int query_merge(fulltext_vtab *v, sqlite3_stmt **pSelect, argument
1079 rc = term_select_doclist(v, zTerm, -1, pSelect);
1086 sqlite3_column_blob(*pSelect, 0),
1087 sqlite3_column_bytes(*pSelect, 0));
1091 rc = sqlite3_step(*pSelect);
1198 sqlite3_stmt *pSelect = NULL; local
1213 rc = query_merge(v, &pSelect, q.pTerm[i].zTerm, d, i - phrase_start, next);
1221 sqlite3_finalize(pSelect);
[all...]
/external/chromium_org/third_party/sqlite/src/ext/fts3/
H A Dfts3_snippet.c1140 sqlite3_stmt *pSelect = 0; local
1156 rc = fts3MatchinfoSelectDoctotal(pTab, &pSelect, &nDoc, 0);
1166 rc = fts3MatchinfoSelectDoctotal(pTab, &pSelect, &nDoc, &a);
1211 rc = fts3MatchinfoSelectDoctotal(pTab, &pSelect, &pInfo->nDoc, 0);
1225 sqlite3_reset(pSelect);
H A Dfts3_write.c748 sqlite3_stmt *pSelect; local
751 rc = fts3SqlStmt(p, SQL_SELECT_CONTENT_BY_ROWID, &pSelect, apVal);
753 if( SQLITE_ROW==sqlite3_step(pSelect) ){
756 const char *zText = (const char *)sqlite3_column_text(pSelect, i);
759 sqlite3_reset(pSelect);
763 aSz[p->nColumn] += sqlite3_column_bytes(pSelect, i);
766 rc = sqlite3_reset(pSelect);
768 sqlite3_reset(pSelect);
/external/chromium_org/third_party/sqlite/amalgamation/
H A Dsqlite3.c9621 Select *pSelect; /* NULL for tables. Points to definition if a view. */ member in struct:Table
9940 ** Expr.x.pSelect is used if the expression is a sub-select or an expression of
9942 ** Expr.flags mask, then Expr.x.pSelect is valid. Otherwise, Expr.x.pList is
9979 ** the subtrees in Expr.x.pList or Expr.x.pSelect are always separately
10000 Select *pSelect; /* Used for sub-selects and "<expr> IN (<select>)" */ member in union:Expr::__anon15462
10033 #define EP_VarSelect 0x0020 /* pSelect is correlated, not constant */
10039 #define EP_xIsSelect 0x0800 /* x.pSelect is valid (otherwise x.pList is) */
10186 Select *pSelect; /* A SELECT statement used in place of a table name */ member in struct:SrcList::SrcList_item
10191 u8 iSelectId; /* If pSelect!=0, the id of the sub-select in EQP */
10683 * pSelect
10710 Select *pSelect; /* SELECT statment or RHS of INSERT INTO .. SELECT ... */ member in struct:TriggerStep
70193 resolveOrderByTermToExprList( Parse *pParse, Select *pSelect, Expr *pE ) argument
70356 sqlite3ResolveOrderGroupBy( Parse *pParse, Select *pSelect, ExprList *pOrderBy, const char *zType ) argument
70406 resolveOrderGroupBy( NameContext *pNC, Select *pSelect, ExprList *pOrderBy, const char *zType ) argument
74392 analyzeAggregatesInSelect(Walker *pWalker, Select *pSelect) argument
78504 sqlite3CreateView( Parse *pParse, Token *pBegin, Token *pName1, Token *pName2, Select *pSelect, int isTemp, int noErr ) argument
81202 Select *pSelect = NULL; /* Complete SELECT tree */ local
84255 Select *pSelect = 0; /* If RESTRICT, "SELECT RAISE(...)" */ local
84916 sqlite3Insert( Parse *pParse, SrcList *pTabList, ExprList *pList, Select *pSelect, IdList *pColumn, int onError ) argument
86089 xferOptimization( Parse *pParse, Table *pDest, Select *pSelect, int onError, int iDbDest ) argument
90334 pushOntoSorter( Parse *pParse, ExprList *pOrderBy, Select *pSelect, int regData ) argument
91270 sqlite3ResultSetOfSelect(Parse *pParse, Select *pSelect) argument
93327 sqlite3SelectExpand(Parse *pParse, Select *pSelect) argument
93384 sqlite3SelectAddTypeInfo(Parse *pParse, Select *pSelect) argument
94925 sqlite3TriggerSelectStep(sqlite3 *db, Select *pSelect) argument
94968 sqlite3TriggerInsertStep( sqlite3 *db, Token *pTableName, IdList *pColumn, ExprList *pEList, Select *pSelect, u8 orconf ) argument
95335 Select *pSelect = sqlite3SelectDup(db, pStep->pSelect, 0); local
96303 Select *pSelect = 0; /* The SELECT statement */ local
120665 sqlite3_stmt *pSelect; local
123784 sqlite3_stmt *pSelect = 0; local
[all...]
/external/sqlite/dist/orig/
H A Dsqlite3.c10942 Select *pSelect; /* NULL for tables. Points to definition if a view. */ member in struct:Table
11307 ** Expr.x.pSelect is used if the expression is a sub-select or an expression of
11309 ** Expr.flags mask, then Expr.x.pSelect is valid. Otherwise, Expr.x.pList is
11346 ** the subtrees in Expr.x.pList or Expr.x.pSelect are always separately
11367 Select *pSelect; /* EP_xIsSelect and op = IN, EXISTS, SELECT */ member in union:Expr::__anon31001
11401 #define EP_VarSelect 0x000020 /* pSelect is correlated, not constant */
11407 #define EP_xIsSelect 0x000800 /* x.pSelect is valid (otherwise x.pList is) */
11569 Select *pSelect; /* A SELECT statement used in place of a table name */ member in struct:SrcList::SrcList_item
11579 u8 iSelectId; /* If pSelect!=0, the id of the sub-select in EQP */
12096 * pSelect
12123 Select *pSelect; /* SELECT statment or RHS of INSERT INTO .. SELECT ... */ member in struct:TriggerStep
12294 Select *pSelect; /* The definition of this CTE */ member in struct:With::Cte
77613 resolveOrderByTermToExprList( Parse *pParse, Select *pSelect, Expr *pE ) argument
77782 sqlite3ResolveOrderGroupBy( Parse *pParse, Select *pSelect, ExprList *pOrderBy, const char *zType ) argument
77832 resolveOrderGroupBy( NameContext *pNC, Select *pSelect, ExprList *pOrderBy, const char *zType ) argument
80032 Select *pSelect = pExpr->x.pSelect; local
82474 analyzeAggregatesInSelect(Walker *pWalker, Select *pSelect) argument
88070 sqlite3CreateView( Parse *pParse, Token *pBegin, Token *pName1, Token *pName2, Select *pSelect, int isTemp, int noErr ) argument
90971 Select *pSelect = NULL; /* Complete SELECT tree */ local
94552 Select *pSelect = 0; /* If RESTRICT, "SELECT RAISE(...)" */ local
95221 sqlite3Insert( Parse *pParse, SrcList *pTabList, Select *pSelect, IdList *pColumn, int onError ) argument
96543 xferOptimization( Parse *pParse, Table *pDest, Select *pSelect, int onError, int iDbDest ) argument
101910 pushOntoSorter( Parse *pParse, SortCtx *pSort, Select *pSelect, int regData ) argument
103115 sqlite3ResultSetOfSelect(Parse *pParse, Select *pSelect) argument
105689 sqlite3SelectExpand(Parse *pParse, Select *pSelect) argument
105752 sqlite3SelectAddTypeInfo(Parse *pParse, Select *pSelect) argument
107411 sqlite3TriggerSelectStep(sqlite3 *db, Select *pSelect) argument
107454 sqlite3TriggerInsertStep( sqlite3 *db, Token *pTableName, IdList *pColumn, Select *pSelect, u8 orconf ) argument
107818 Select *pSelect = sqlite3SelectDup(db, pStep->pSelect, 0); local
108896 Select *pSelect = 0; /* The SELECT statement */ local
137743 langidFromSelect(Fts3Table *p, sqlite3_stmt *pSelect) argument
137762 sqlite3_stmt *pSelect; local
140861 sqlite3_stmt *pSelect = 0; /* SELECT to read %_segdir entry */ local
141127 sqlite3_stmt *pSelect = 0; /* Select statement to read idx values */ local
141408 sqlite3_stmt *pSelect = 0; local
143393 sqlite3_stmt *pSelect = 0; local
[all...]
/external/sqlite/dist/
H A Dsqlite3.c10942 Select *pSelect; /* NULL for tables. Points to definition if a view. */ member in struct:Table
11307 ** Expr.x.pSelect is used if the expression is a sub-select or an expression of
11309 ** Expr.flags mask, then Expr.x.pSelect is valid. Otherwise, Expr.x.pList is
11346 ** the subtrees in Expr.x.pList or Expr.x.pSelect are always separately
11367 Select *pSelect; /* EP_xIsSelect and op = IN, EXISTS, SELECT */ member in union:Expr::__anon31032
11401 #define EP_VarSelect 0x000020 /* pSelect is correlated, not constant */
11407 #define EP_xIsSelect 0x000800 /* x.pSelect is valid (otherwise x.pList is) */
11569 Select *pSelect; /* A SELECT statement used in place of a table name */ member in struct:SrcList::SrcList_item
11579 u8 iSelectId; /* If pSelect!=0, the id of the sub-select in EQP */
12096 * pSelect
12123 Select *pSelect; /* SELECT statment or RHS of INSERT INTO .. SELECT ... */ member in struct:TriggerStep
12294 Select *pSelect; /* The definition of this CTE */ member in struct:With::Cte
77633 resolveOrderByTermToExprList( Parse *pParse, Select *pSelect, Expr *pE ) argument
77802 sqlite3ResolveOrderGroupBy( Parse *pParse, Select *pSelect, ExprList *pOrderBy, const char *zType ) argument
77852 resolveOrderGroupBy( NameContext *pNC, Select *pSelect, ExprList *pOrderBy, const char *zType ) argument
80052 Select *pSelect = pExpr->x.pSelect; local
82494 analyzeAggregatesInSelect(Walker *pWalker, Select *pSelect) argument
88090 sqlite3CreateView( Parse *pParse, Token *pBegin, Token *pName1, Token *pName2, Select *pSelect, int isTemp, int noErr ) argument
90991 Select *pSelect = NULL; /* Complete SELECT tree */ local
94572 Select *pSelect = 0; /* If RESTRICT, "SELECT RAISE(...)" */ local
95241 sqlite3Insert( Parse *pParse, SrcList *pTabList, Select *pSelect, IdList *pColumn, int onError ) argument
96563 xferOptimization( Parse *pParse, Table *pDest, Select *pSelect, int onError, int iDbDest ) argument
101930 pushOntoSorter( Parse *pParse, SortCtx *pSort, Select *pSelect, int regData ) argument
103135 sqlite3ResultSetOfSelect(Parse *pParse, Select *pSelect) argument
105709 sqlite3SelectExpand(Parse *pParse, Select *pSelect) argument
105772 sqlite3SelectAddTypeInfo(Parse *pParse, Select *pSelect) argument
107431 sqlite3TriggerSelectStep(sqlite3 *db, Select *pSelect) argument
107474 sqlite3TriggerInsertStep( sqlite3 *db, Token *pTableName, IdList *pColumn, Select *pSelect, u8 orconf ) argument
107838 Select *pSelect = sqlite3SelectDup(db, pStep->pSelect, 0); local
108916 Select *pSelect = 0; /* The SELECT statement */ local
137775 langidFromSelect(Fts3Table *p, sqlite3_stmt *pSelect) argument
137794 sqlite3_stmt *pSelect; local
140893 sqlite3_stmt *pSelect = 0; /* SELECT to read %_segdir entry */ local
141159 sqlite3_stmt *pSelect = 0; /* Select statement to read idx values */ local
141440 sqlite3_stmt *pSelect = 0; local
143425 sqlite3_stmt *pSelect = 0; local
[all...]

Completed in 669 milliseconds