1
0
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:
drh
2014-01-11 13:22:17 +00:00
parent 03e1b1f5ff
commit 8b4718636c
6 changed files with 70 additions and 24 deletions

View File

@@ -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) */