mirror of
https://github.com/sqlite/sqlite.git
synced 2025-12-04 20:02:48 +03:00
Parse common table expressions. But do not do anything with them (yet).
FossilOrigin-Name: da98b7205eb3d7ec2ddbf8a8e24eee0b2ff499a5
This commit is contained in:
21
src/build.c
21
src/build.c
@@ -4198,3 +4198,24 @@ KeyInfo *sqlite3KeyInfoOfIndex(Parse *pParse, Index *pIdx){
|
||||
}
|
||||
return sqlite3KeyInfoRef(pIdx->pKeyInfo);
|
||||
}
|
||||
|
||||
#ifndef SQLITE_OMIT_CTE
|
||||
/* This routine is invoked when a single with_query of a
|
||||
** common-table-expression has been parsed. Record the query.
|
||||
*/
|
||||
void sqlite3CteAdd(
|
||||
Parse *pParse, /* Parsing context */
|
||||
Token *pName, /* Name of the common-table */
|
||||
ExprList *pArgList, /* Optional column name list for the table */
|
||||
Select *pQuery /* Query used to initialize the table */
|
||||
){
|
||||
sqlite3ExprListDelete(pParse->db, pArgList);
|
||||
sqlite3SelectDelete(pParse->db, pQuery);
|
||||
}
|
||||
|
||||
/* This routine is invoked at the end of the entire WITH clause.
|
||||
*/
|
||||
void sqlite3CteFinish(Parse *pParse, int isRecursive){
|
||||
/* TBD */
|
||||
}
|
||||
#endif /* !defined(SQLITE_OMIT_CTE) */
|
||||
|
||||
Reference in New Issue
Block a user