Home
last modified time | relevance | path

Searched refs:pSelect (Results 1 – 25 of 29) sorted by relevance

12

/external/chromium_org/third_party/sqlite/src/src/
Dresolve.c307 assert( pExpr->x.pSelect==0 ); in lookupName()
591 sqlite3WalkSelect(pWalker, pExpr->x.pSelect); in resolveExprStep()
664 Select *pSelect, /* The SELECT statement with the ORDER BY clause */ in resolveOrderByTermToExprList() argument
675 pEList = pSelect->pEList; in resolveOrderByTermToExprList()
681 nc.pSrcList = pSelect->pSrc; in resolveOrderByTermToExprList()
737 Select *pSelect /* The SELECT statement containing the ORDER BY */ in resolveCompoundOrderBy() argument
745 pOrderBy = pSelect->pOrderBy; in resolveCompoundOrderBy()
757 pSelect->pNext = 0; in resolveCompoundOrderBy()
758 while( pSelect->pPrior ){ in resolveCompoundOrderBy()
759 pSelect->pPrior->pNext = pSelect; in resolveCompoundOrderBy()
[all …]
Dinsert.c326 Select *pSelect, /* A SELECT statement to use as the data source */
437 Select *pSelect, /* A SELECT statement to use as the data source */ in sqlite3Insert() argument
507 isView = pTab->pSelect!=0; in sqlite3Insert()
540 sqlite3BeginWriteOperation(pParse, pSelect || pTrigger, iDb); in sqlite3Insert()
552 if( pColumn==0 && xferOptimization(pParse, pTab, pSelect, onError, iDb) ){ in sqlite3Insert()
569 if( pSelect ){ in sqlite3Insert()
604 rc = sqlite3Select(pParse, pSelect, &dest); in sqlite3Insert()
616 assert( pSelect->pEList ); in sqlite3Insert()
617 nColumn = pSelect->pEList->nExpr; in sqlite3Insert()
781 }else if( pSelect ){ in sqlite3Insert()
[all …]
Dattach.c462 if( sqlite3FixSelect(pFix, pItem->pSelect) ) return 1; in sqlite3FixSrcList()
471 Select *pSelect /* The SELECT statement to be fixed to one database */ in sqlite3FixSelect() argument
473 while( pSelect ){ in sqlite3FixSelect()
474 if( sqlite3FixExprList(pFix, pSelect->pEList) ){ in sqlite3FixSelect()
477 if( sqlite3FixSrcList(pFix, pSelect->pSrc) ){ in sqlite3FixSelect()
480 if( sqlite3FixExpr(pFix, pSelect->pWhere) ){ in sqlite3FixSelect()
483 if( sqlite3FixExpr(pFix, pSelect->pHaving) ){ in sqlite3FixSelect()
486 pSelect = pSelect->pPrior; in sqlite3FixSelect()
497 if( sqlite3FixSelect(pFix, pExpr->x.pSelect) ) return 1; in sqlite3FixExpr()
530 if( sqlite3FixSelect(pFix, pStep->pSelect) ){ in sqlite3FixTriggerStep()
Ddelete.c74 if( !viewOk && pTab->pSelect ){ in sqlite3IsReadOnly()
99 pDup = sqlite3SelectDup(db, pView->pSelect, 0); in sqlite3MaterializeView()
108 pFrom->a[0].pSelect = pDup; in sqlite3MaterializeView()
145 Select *pSelect = NULL; /* Complete SELECT tree */ in sqlite3LimitWhere() local
187 pSelect = sqlite3SelectNew(pParse,pEList,pSelectSrc,pWhere,0,0, in sqlite3LimitWhere()
189 if( pSelect == 0 ) return 0; in sqlite3LimitWhere()
197 pInClause->x.pSelect = pSelect; in sqlite3LimitWhere()
204 sqlite3SelectDelete(pParse->db, pSelect); in sqlite3LimitWhere()
268 isView = pTab->pSelect!=0; in sqlite3DeleteFrom()
544 if( pTab->pSelect==0 ){ in sqlite3GenerateRowDelete()
Dtrigger.c26 sqlite3SelectDelete(db, pTmp->pSelect); in sqlite3DeleteTriggerStep()
191 if( pTab->pSelect && tr_tm!=TK_INSTEAD ){ in sqlite3BeginTrigger()
196 if( !pTab->pSelect && tr_tm==TK_INSTEAD ){ in sqlite3BeginTrigger()
339 TriggerStep *sqlite3TriggerSelectStep(sqlite3 *db, Select *pSelect){ in sqlite3TriggerSelectStep() argument
342 sqlite3SelectDelete(db, pSelect); in sqlite3TriggerSelectStep()
346 pTriggerStep->pSelect = pSelect; in sqlite3TriggerSelectStep()
387 Select *pSelect, /* A SELECT statement that supplies values */ in sqlite3TriggerInsertStep() argument
392 assert(pEList == 0 || pSelect == 0); in sqlite3TriggerInsertStep()
393 assert(pEList != 0 || pSelect != 0 || db->mallocFailed); in sqlite3TriggerInsertStep()
397 pTriggerStep->pSelect = sqlite3SelectDup(db, pSelect, EXPRDUP_REDUCE); in sqlite3TriggerInsertStep()
[all …]
Dselect.c415 Select *pSelect, /* The whole SELECT statement */ in pushOntoSorter() argument
430 if( pSelect->iLimit ){ in pushOntoSorter()
433 if( pSelect->iOffset ){ in pushOntoSorter()
434 iLimit = pSelect->iOffset+1; in pushOntoSorter()
436 iLimit = pSelect->iLimit; in pushOntoSorter()
1007 pS = pTabList->a[j].pSelect; in columnType()
1079 Select *pS = pExpr->x.pSelect; in columnType()
1315 Select *pSelect /* SELECT used to determine types and collations */ in selectAddColumnTypeAndCollation() argument
1325 assert( pSelect!=0 ); in selectAddColumnTypeAndCollation()
1326 assert( (pSelect->selFlags & SF_Resolved)!=0 ); in selectAddColumnTypeAndCollation()
[all …]
Dbuild.c543 sqlite3SelectDelete(db, pTable->pSelect); in sqlite3DeleteTable()
1464 Select *pSelect /* Select from a "CREATE ... AS SELECT" */ in sqlite3EndTable() argument
1470 if( (pEnd==0 && pSelect==0) || db->mallocFailed ){ in sqlite3EndTable()
1476 assert( !db->init.busy || !pSelect ); in sqlite3EndTable()
1533 if( p->pSelect==0 ){ in sqlite3EndTable()
1558 if( pSelect ){ in sqlite3EndTable()
1567 sqlite3Select(pParse, pSelect, &dest); in sqlite3EndTable()
1570 pSelTab = sqlite3ResultSetOfSelect(pParse, pSelect); in sqlite3EndTable()
1582 if( pSelect ){ in sqlite3EndTable()
1650 if( !p->pSelect ){ in sqlite3EndTable()
[all …]
Dwalker.c50 if( sqlite3WalkSelect(pWalker, pExpr->x.pSelect) ) return WRC_Abort; in sqlite3WalkExpr()
105 if( sqlite3WalkSelect(pWalker, pItem->pSelect) ){ in sqlite3WalkSelectFrom()
Dupdate.c62 if( !pTab->pSelect ){ in sqlite3ColumnDefault()
150 isView = pTab->pSelect!=0; in sqlite3Update()
604 Select *pSelect = 0; /* The SELECT statement */ in updateVirtualTable() local
631 pSelect = sqlite3SelectNew(pParse, pEList, pSrc, pWhere, 0, 0, 0, 0, 0, 0); in updateVirtualTable()
644 sqlite3Select(pParse, pSelect, &dest); in updateVirtualTable()
663 sqlite3SelectDelete(db, pSelect); in updateVirtualTable()
Dfkey.c599 sqlite3SelectDelete(dbMem, pStep->pSelect); in fkTriggerDelete()
624 if( (db->flags&SQLITE_ForeignKeys) && !IsVirtual(pTab) && !pTab->pSelect ){ in sqlite3FkDropTable()
963 Select *pSelect = 0; /* If RESTRICT, "SELECT RAISE(...)" */ in fkActionTrigger() local
1054 pSelect = sqlite3SelectNew(pParse, in fkActionTrigger()
1080 pStep->pSelect = sqlite3SelectDup(db, pSelect, EXPRDUP_REDUCE); in fkActionTrigger()
1093 sqlite3SelectDelete(db, pSelect); in fkActionTrigger()
Dexpr.c37 return sqlite3ExprAffinity(pExpr->x.pSelect->pEList->a[0].pExpr); in sqlite3ExprAffinity()
168 aff = sqlite3CompareAffinity(pExpr->x.pSelect->pEList->a[0].pExpr, aff); in comparisonAffinity()
328 heightOfSelect(p->x.pSelect, &nHeight); in exprSetHeight()
625 sqlite3SelectDelete(db, p->x.pSelect); in sqlite3ExprDelete()
801 pNew->x.pSelect = sqlite3SelectDup(db, p->x.pSelect, isReduced); in exprDup()
912 pNewItem->pSelect = sqlite3SelectDup(db, pOldItem->pSelect, flags); in sqlite3SrcListDup()
1361 if( pSrc->a[0].pSelect ) return 0; /* FROM is not a subquery or view */ in isCandidateForInOpt()
1364 assert( pTab->pSelect==0 ); /* FROM clause is not a view */ in isCandidateForInOpt()
1440 p = (ExprHasProperty(pX, EP_xIsSelect) ? pX->x.pSelect : 0); in sqlite3FindInIndex()
1655 pExpr->x.pSelect->iLimit = 0; in sqlite3CodeSubselect()
[all …]
Dshell.c935 sqlite3_stmt *pSelect; in run_table_dump_query() local
937 rc = sqlite3_prepare(db, zSelect, -1, &pSelect, 0); in run_table_dump_query()
938 if( rc!=SQLITE_OK || !pSelect ){ in run_table_dump_query()
941 rc = sqlite3_step(pSelect); in run_table_dump_query()
947 fprintf(out, "%s;\n", sqlite3_column_text(pSelect, 0)); in run_table_dump_query()
948 rc = sqlite3_step(pSelect); in run_table_dump_query()
950 return sqlite3_finalize(pSelect); in run_table_dump_query()
Dalter.c447 if( pTab->pSelect ){ in sqlite3AlterRenameTable()
771 if( pTab->pSelect ){ in sqlite3AlterBeginAddColumn()
DsqliteInt.h1276 Select *pSelect; /* NULL for tables. Points to definition if a view. */ member
1655 Select *pSelect; /* Used for sub-selects and "<expr> IN (<select>)" */ member
1841 Select *pSelect; /* A SELECT statement used in place of a table name */ member
2365 Select *pSelect; /* SELECT statment or RHS of INSERT INTO .. SELECT ... */ member
Dvdbeblob.c182 if( pTab && pTab->pSelect ){ in sqlite3_blob_open()
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;
/external/chromium_org/third_party/sqlite/src/ext/fts1/
Dfulltext.c1067 static int query_merge(fulltext_vtab *v, sqlite3_stmt **pSelect, in query_merge() argument
1079 rc = term_select_doclist(v, zTerm, -1, pSelect); in query_merge()
1086 sqlite3_column_blob(*pSelect, 0), in query_merge()
1087 sqlite3_column_bytes(*pSelect, 0)); in query_merge()
1091 rc = sqlite3_step(*pSelect); in query_merge()
1198 sqlite3_stmt *pSelect = NULL; in fulltext_query() local
1213 rc = query_merge(v, &pSelect, q.pTerm[i].zTerm, d, i - phrase_start, next); in fulltext_query()
1221 sqlite3_finalize(pSelect); in fulltext_query()
/external/chromium_org/third_party/sqlite/src/ext/fts3/
Dfts3_snippet.c1140 sqlite3_stmt *pSelect = 0; in fts3MatchinfoValues() local
1156 rc = fts3MatchinfoSelectDoctotal(pTab, &pSelect, &nDoc, 0); in fts3MatchinfoValues()
1166 rc = fts3MatchinfoSelectDoctotal(pTab, &pSelect, &nDoc, &a); in fts3MatchinfoValues()
1211 rc = fts3MatchinfoSelectDoctotal(pTab, &pSelect, &pInfo->nDoc, 0); in fts3MatchinfoValues()
1225 sqlite3_reset(pSelect); in fts3MatchinfoValues()
Dfts3_write.c748 sqlite3_stmt *pSelect; in fts3DeleteTerms() local
751 rc = fts3SqlStmt(p, SQL_SELECT_CONTENT_BY_ROWID, &pSelect, apVal); in fts3DeleteTerms()
753 if( SQLITE_ROW==sqlite3_step(pSelect) ){ in fts3DeleteTerms()
756 const char *zText = (const char *)sqlite3_column_text(pSelect, i); in fts3DeleteTerms()
759 sqlite3_reset(pSelect); in fts3DeleteTerms()
763 aSz[p->nColumn] += sqlite3_column_bytes(pSelect, i); in fts3DeleteTerms()
766 rc = sqlite3_reset(pSelect); in fts3DeleteTerms()
768 sqlite3_reset(pSelect); in fts3DeleteTerms()
/external/sqlite/dist/
Dshell.c959 sqlite3_stmt *pSelect; in run_table_dump_query() local
964 rc = sqlite3_prepare(p->db, zSelect, -1, &pSelect, 0); in run_table_dump_query()
965 if( rc!=SQLITE_OK || !pSelect ){ in run_table_dump_query()
970 rc = sqlite3_step(pSelect); in run_table_dump_query()
971 nResult = sqlite3_column_count(pSelect); in run_table_dump_query()
977 z = (const char*)sqlite3_column_text(pSelect, 0); in run_table_dump_query()
980 fprintf(p->out, ",%s", sqlite3_column_text(pSelect, i)); in run_table_dump_query()
989 rc = sqlite3_step(pSelect); in run_table_dump_query()
991 rc = sqlite3_finalize(pSelect); in run_table_dump_query()
Dsqlite3.c10182 Select *pSelect; /* NULL for tables. Points to definition if a view. */ member
10564 Select *pSelect; /* Used for sub-selects and "<expr> IN (<select>)" */ member
10748 Select *pSelect; /* A SELECT statement used in place of a table name */ member
11281 Select *pSelect; /* SELECT statment or RHS of INSERT INTO .. SELECT ... */ member
71383 if( pTab && pTab->pSelect ){
73114 if( sqlite3WalkSelect(pWalker, pExpr->x.pSelect) ) return WRC_Abort;
73169 if( sqlite3WalkSelect(pWalker, pItem->pSelect) ){
73514 assert( pExpr->x.pSelect==0 );
73798 sqlite3WalkSelect(pWalker, pExpr->x.pSelect);
73871 Select *pSelect, /* The SELECT statement with the ORDER BY clause */
[all …]
/external/sqlite/dist/orig/
Dshell.c954 sqlite3_stmt *pSelect; in run_table_dump_query() local
959 rc = sqlite3_prepare(p->db, zSelect, -1, &pSelect, 0); in run_table_dump_query()
960 if( rc!=SQLITE_OK || !pSelect ){ in run_table_dump_query()
965 rc = sqlite3_step(pSelect); in run_table_dump_query()
966 nResult = sqlite3_column_count(pSelect); in run_table_dump_query()
972 z = (const char*)sqlite3_column_text(pSelect, 0); in run_table_dump_query()
975 fprintf(p->out, ",%s", sqlite3_column_text(pSelect, i)); in run_table_dump_query()
984 rc = sqlite3_step(pSelect); in run_table_dump_query()
986 rc = sqlite3_finalize(pSelect); in run_table_dump_query()
Dsqlite3.c10182 Select *pSelect; /* NULL for tables. Points to definition if a view. */ member
10564 Select *pSelect; /* Used for sub-selects and "<expr> IN (<select>)" */ member
10748 Select *pSelect; /* A SELECT statement used in place of a table name */ member
11281 Select *pSelect; /* SELECT statment or RHS of INSERT INTO .. SELECT ... */ member
71355 if( pTab && pTab->pSelect ){
73078 if( sqlite3WalkSelect(pWalker, pExpr->x.pSelect) ) return WRC_Abort;
73133 if( sqlite3WalkSelect(pWalker, pItem->pSelect) ){
73478 assert( pExpr->x.pSelect==0 );
73762 sqlite3WalkSelect(pWalker, pExpr->x.pSelect);
73835 Select *pSelect, /* The SELECT statement with the ORDER BY clause */
[all …]
/external/chromium_org/third_party/sqlite/amalgamation/
Dsqlite3.c9636 Select *pSelect; /* NULL for tables. Points to definition if a view. */ member
10015 Select *pSelect; /* Used for sub-selects and "<expr> IN (<select>)" */ member
10201 Select *pSelect; /* A SELECT statement used in place of a table name */ member
10725 Select *pSelect; /* SELECT statment or RHS of INSERT INTO .. SELECT ... */ member
68789 if( pTab && pTab->pSelect ){
69624 if( sqlite3WalkSelect(pWalker, pExpr->x.pSelect) ) return WRC_Abort;
69679 if( sqlite3WalkSelect(pWalker, pItem->pSelect) ){
70017 assert( pExpr->x.pSelect==0 );
70301 sqlite3WalkSelect(pWalker, pExpr->x.pSelect);
70374 Select *pSelect, /* The SELECT statement with the ORDER BY clause */
[all …]
/external/chromium_org/third_party/sqlite/src/test/
Dtkt1443.test24 # Expr.pRight field rather than Expr.pList and Expr.pSelect.

12