/titanic_50/usr/src/lib/libsqlite/src/ |
H A D | attach.c | 240 if( sqliteFixSelect(pFix, pList->a[i].pSelect) ) return 1; in sqliteFixSrcList() 247 Select *pSelect /* The SELECT statement to be fixed to one database */ in sqliteFixSelect() argument 249 while( pSelect ){ in sqliteFixSelect() 250 if( sqliteFixExprList(pFix, pSelect->pEList) ){ in sqliteFixSelect() 253 if( sqliteFixSrcList(pFix, pSelect->pSrc) ){ in sqliteFixSelect() 256 if( sqliteFixExpr(pFix, pSelect->pWhere) ){ in sqliteFixSelect() 259 if( sqliteFixExpr(pFix, pSelect->pHaving) ){ in sqliteFixSelect() 262 pSelect = pSelect->pPrior; in sqliteFixSelect() 271 if( sqliteFixSelect(pFix, pExpr->pSelect) ){ in sqliteFixExpr() 302 if( sqliteFixSelect(pFix, pStep->pSelect) ){ in sqliteFixTriggerStep()
|
H A D | trigger.c | 29 sqliteSelectDelete(pTmp->pSelect); in sqliteDeleteTriggerStep() 99 if( tab->pSelect && tr_tm != TK_INSTEAD ){ in sqliteBeginTrigger() 104 if( !tab->pSelect && tr_tm == TK_INSTEAD ){ in sqliteBeginTrigger() 250 if( p->pSelect ){ in sqlitePersistTriggerStep() 251 Select *pNew = sqliteSelectDup(p->pSelect); in sqlitePersistTriggerStep() 252 sqliteSelectDelete(p->pSelect); in sqlitePersistTriggerStep() 253 p->pSelect = pNew; in sqlitePersistTriggerStep() 279 TriggerStep *sqliteTriggerSelectStep(Select *pSelect){ in sqliteTriggerSelectStep() argument 284 pTriggerStep->pSelect = pSelect; in sqliteTriggerSelectStep() 302 Select *pSelect, /* A SELECT statement that supplies values */ in sqliteTriggerInsertStep() argument [all …]
|
H A D | insert.c | 93 Select *pSelect, /* A SELECT statement to use as the data source */ in sqliteInsert() argument 149 isView = pTab->pSelect!=0; in sqliteInsert() 165 sqliteBeginWriteOperation(pParse, pSelect || row_triggers_exist, pTab->iDb); in sqliteInsert() 180 if( pSelect ){ in sqliteInsert() 187 rc = sqliteSelect(pParse, pSelect, SRT_Subroutine, iInsertBlock, 0,0,0); in sqliteInsert() 191 assert( pSelect->pEList ); in sqliteInsert() 192 nColumn = pSelect->pEList->nExpr; in sqliteInsert() 349 }else if( pSelect ){ in sqliteInsert() 369 }else if( pSelect ){ in sqliteInsert() 393 }else if( pSelect ){ in sqliteInsert() [all …]
|
H A D | build.c | 356 sqliteSelectDelete(pTable->pSelect); in sqliteDeleteTable() 886 void sqliteEndTable(Parse *pParse, Token *pEnd, Select *pSelect){ in sqliteEndTable() argument 890 if( (pEnd==0 && pSelect==0) || pParse->nErr || sqlite_malloc_failed ) return; in sqliteEndTable() 897 if( pSelect ){ in sqliteEndTable() 898 Table *pSelTab = sqliteResultSetOfSelect(pParse, 0, pSelect); in sqliteEndTable() 931 if( p->pSelect==0 ){ in sqliteEndTable() 940 sqliteVdbeOp3(v, OP_String, 0, 0, p->pSelect==0?"table":"view", P3_STATIC); in sqliteEndTable() 945 if( pSelect ){ in sqliteEndTable() 961 if( pSelect ){ in sqliteEndTable() 965 sqliteSelect(pParse, pSelect, SRT_Table, 1, 0, 0, 0); in sqliteEndTable() [all …]
|
H A D | select.c | 790 Table *sqliteResultSetOfSelect(Parse *pParse, char *zTabName, Select *pSelect){ in sqliteResultSetOfSelect() argument 796 if( fillInColumnList(pParse, pSelect) ){ in sqliteResultSetOfSelect() 804 pEList = pSelect->pEList; in sqliteResultSetOfSelect() 880 assert( pTabList->a[i].pSelect!=0 ); in fillInColumnList() 884 (void*)pTabList->a[i].pSelect); in fillInColumnList() 889 pTabList->a[i].pSelect); in fillInColumnList() 905 if( pTab->pSelect ){ in fillInColumnList() 915 if( pTabList->a[i].pSelect==0 ){ in fillInColumnList() 916 pTabList->a[i].pSelect = sqliteSelectDup(pTab->pSelect); in fillInColumnList() 1063 if( pSrc->a[i].pSelect ){ in sqliteSelectUnbind() [all …]
|
H A D | expr.c | 106 sqliteSelectDelete(p->pSelect); in sqliteExprDelete() 139 pNew->pSelect = sqliteSelectDup(p->pSelect); in sqliteExprDup() 201 pNewItem->pSelect = sqliteSelectDup(pOldItem->pSelect); in sqliteSrcListDup() 694 if( pExpr->pSelect ){ in sqliteExprResolveIds() 703 sqliteSelect(pParse, pExpr->pSelect, SRT_Set, pExpr->iTable, 0,0,0); in sqliteExprResolveIds() 753 if( sqliteSelect(pParse, pExpr->pSelect, SRT_Mem, pExpr->iColumn,0,0,0) ){ in sqliteExprResolveIds() 981 assert( p->pSelect ); in sqliteExprType() 982 assert( p->pSelect->pEList ); in sqliteExprType() 983 assert( p->pSelect->pEList->nExpr>0 ); in sqliteExprType() 984 p = p->pSelect->pEList->a[0].pExpr; in sqliteExprType() [all …]
|
H A D | delete.c | 49 if( !viewOk && pTab->pSelect ){ in sqliteIsReadOnly() 101 isView = pTab->pSelect!=0; in sqliteDeleteFrom() 154 Select *pView = sqliteSelectDup(pTab->pSelect); in sqliteDeleteFrom()
|
H A D | sqliteInt.h | 506 Select *pSelect; /* NULL for tables. Points to definition if a view. */ member 698 Select *pSelect; /* When the expression is a sub-select. Also the member 779 Select *pSelect; /* A SELECT statement used in place of a table name */ member 1030 Select *pSelect; /* Valid for SELECT and sometimes member
|
H A D | update.c | 81 isView = pTab->pSelect!=0; in sqliteUpdate() 224 pView = sqliteSelectDup(pTab->pSelect); in sqliteUpdate()
|
H A D | parse.y | 386 A->a[A->nSrc-1].pSelect = S; 643 if( A ) A->pSelect = X; 668 if( A ) A->pSelect = Y; 679 if( A ) A->pSelect = Y; 686 if( A ) A->pSelect = sqliteSelectNew(0,pSrc,0,0,0,0,0,-1,0); 692 if( A ) A->pSelect = sqliteSelectNew(0,pSrc,0,0,0,0,0,-1,0);
|
H A D | where.c | 709 if( pTab->isTransient || pTab->pSelect ) continue; in sqliteWhereBegin() 763 assert( pX->pSelect ); in sqliteWhereBegin() 807 assert( pX->pSelect ); in sqliteWhereBegin() 1224 if( pTab->isTransient || pTab->pSelect ) continue; in sqliteWhereEnd()
|