aboutsummaryrefslogtreecommitdiff
path: root/src/treeview.c
diff options
context:
space:
mode:
authordrh <>2023-10-18 13:18:52 +0000
committerdrh <>2023-10-18 13:18:52 +0000
commitf8202f1ff3ff84908ff1038886f6c6c01eba8dc2 (patch)
tree42f4fc6905198c62a4547c91140fa90e8d62df45 /src/treeview.c
parent0b4de1acac7da83cfaf72cbd00d1d1f2fd456b1a (diff)
downloadsqlite-f8202f1ff3ff84908ff1038886f6c6c01eba8dc2.tar.gz
sqlite-f8202f1ff3ff84908ff1038886f6c6c01eba8dc2.zip
Enhance the parser so that it can accept an ORDER BY clause on a function
invocation. For this incremental check-in, the ORDER BY clause is currently ignored. FossilOrigin-Name: 3a98ff24bf468ed42d410a9a12d9f9b2ca154c7babe99fd6bc6f7b0565e0d132
Diffstat (limited to 'src/treeview.c')
-rw-r--r--src/treeview.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/treeview.c b/src/treeview.c
index d55adab38..6852a61dd 100644
--- a/src/treeview.c
+++ b/src/treeview.c
@@ -709,6 +709,12 @@ void sqlite3TreeViewExpr(TreeView *pView, const Expr *pExpr, u8 moreToFollow){
}
if( pFarg ){
sqlite3TreeViewExprList(pView, pFarg, pWin!=0, 0);
+ if( pExpr->pLeft ){
+ Expr *pOB = pExpr->pLeft;
+ assert( pOB->op==TK_ORDER );
+ assert( ExprUseXList(pOB) );
+ sqlite3TreeViewExprList(pView, pOB->x.pList, pWin!=0, "ORDERBY");
+ }
}
#ifndef SQLITE_OMIT_WINDOWFUNC
if( pWin ){