1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Improvements to the display of AST for DML statements.

FossilOrigin-Name: 84c239a071cfaf8af107646f01ef269e2915fd2384e95927d484f2e408ba6bbf
This commit is contained in:
drh
2022-04-06 18:30:17 +00:00
parent 2a7dcbfbb0
commit c2d0df95ba
6 changed files with 24 additions and 15 deletions

View File

@@ -947,6 +947,7 @@ void sqlite3TreeViewInsert(
const SrcList *pTabList,
const IdList *pColumnList,
const Select *pSelect,
const ExprList *pExprList,
int onError,
const Upsert *pUpsert,
const Trigger *pTrigger
@@ -967,6 +968,7 @@ void sqlite3TreeViewInsert(
if( pTabList ) n++;
if( pColumnList ) n++;
if( pSelect ) n++;
if( pExprList ) n++;
if( pUpsert ) n++;
if( pTrigger ) n++;
if( pWith ){
@@ -989,6 +991,9 @@ void sqlite3TreeViewInsert(
sqlite3TreeViewSelect(pView, pSelect, 0);
sqlite3TreeViewPop(&pView);
}
if( pExprList ){
sqlite3TreeViewExprList(pView, pExprList, (--n)>0, "VALUES");
}
if( pUpsert ){
sqlite3TreeViewPush(&pView, (--n)>0);
sqlite3TreeViewLine(pView, "UPSERT");