diff options
author | drh <drh@noemail.net> | 2015-08-24 17:42:49 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-08-24 17:42:49 +0000 |
commit | 8981b904b545ad056ad2f6eb0ebef6a6b9606b5b (patch) | |
tree | 3a1b5fab3fa79bdad22302fff925fac05992c020 /src/sqliteInt.h | |
parent | a09767b230e858f5fdb331532d3a73ef5f7137c2 (diff) | |
download | sqlite-8981b904b545ad056ad2f6eb0ebef6a6b9606b5b.tar.gz sqlite-8981b904b545ad056ad2f6eb0ebef6a6b9606b5b.zip |
Enhance the CREATE VIEW syntax so that the names of columns of the view can
be specified after the view name.
FossilOrigin-Name: d794b34da6f9c77dfe17773b0b17b22de72cce7f
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 18a0fd705..5f1235053 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -1632,9 +1632,8 @@ struct Table { Select *pSelect; /* NULL for tables. Points to definition if a view. */ FKey *pFKey; /* Linked list of all foreign keys in this table */ char *zColAff; /* String defining the affinity of each column */ -#ifndef SQLITE_OMIT_CHECK ExprList *pCheck; /* All CHECK constraints */ -#endif + /* ... also used as column name list in a VIEW */ int tnum; /* Root BTree page for this table */ i16 iPKey; /* If not negative, use aCol[iPKey] as the rowid */ i16 nCol; /* Number of columns in this table */ @@ -3260,6 +3259,7 @@ void sqlite3CollapseDatabaseArray(sqlite3*); void sqlite3BeginParse(Parse*,int); void sqlite3CommitInternalChanges(sqlite3*); void sqlite3DeleteColumnNames(sqlite3*,Table*); +int sqlite3ColumnsFromExprList(Parse*,ExprList*,i16*,Column**); Table *sqlite3ResultSetOfSelect(Parse*,Select*); void sqlite3OpenMasterTable(Parse *, int); Index *sqlite3PrimaryKeyIndex(Table*); @@ -3301,7 +3301,7 @@ void sqlite3RowSetInsert(RowSet*, i64); int sqlite3RowSetTest(RowSet*, int iBatch, i64); int sqlite3RowSetNext(RowSet*, i64*); -void sqlite3CreateView(Parse*,Token*,Token*,Token*,Select*,int,int); +void sqlite3CreateView(Parse*,Token*,Token*,Token*,ExprList*,Select*,int,int); #if !defined(SQLITE_OMIT_VIEW) || !defined(SQLITE_OMIT_VIRTUALTABLE) int sqlite3ViewGetColumnNames(Parse*,Table*); |