aboutsummaryrefslogtreecommitdiff
path: root/src/treeview.c
diff options
context:
space:
mode:
authordrh <>2021-05-24 11:35:16 +0000
committerdrh <>2021-05-24 11:35:16 +0000
commitbf7f3a005e1cf4573af2c74f3c3fdb721961ad4d (patch)
treea835bdd352ea9270031b794487c185dc12a9efd3 /src/treeview.c
parent0542812726e199388fa06e8bdea8a75bb3688721 (diff)
downloadsqlite-bf7f3a005e1cf4573af2c74f3c3fdb721961ad4d.tar.gz
sqlite-bf7f3a005e1cf4573af2c74f3c3fdb721961ad4d.zip
Fix the TreeView module so that it works with the TK_ERROR exprssion.
Also fix an assert() that was failing due to the recent TK_ERROR addition. FossilOrigin-Name: dd56fbe0cfb0f7848190ce097b378321dd25ae509c7edf93682b091014824fc6
Diffstat (limited to 'src/treeview.c')
-rw-r--r--src/treeview.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/treeview.c b/src/treeview.c
index 12a6b21a8..c737a1b98 100644
--- a/src/treeview.c
+++ b/src/treeview.c
@@ -706,6 +706,14 @@ void sqlite3TreeViewExpr(TreeView *pView, const Expr *pExpr, u8 moreToFollow){
sqlite3TreeViewExpr(pView, pExpr->pLeft, 0);
break;
}
+ case TK_ERROR: {
+ Expr tmp;
+ sqlite3TreeViewLine(pView, "ERROR");
+ tmp = *pExpr;
+ tmp.op = pExpr->op2;
+ sqlite3TreeViewExpr(pView, &tmp, 0);
+ break;
+ }
default: {
sqlite3TreeViewLine(pView, "op=%d", pExpr->op);
break;