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

Enhance the treeview debugging mechanism so that it correctly deals with

TK_ROW expression nodes.

FossilOrigin-Name: e87fdb6514b6f6775a5a36ca0ec5c920eeaba9e3b842dffa327e970b27cd036d
This commit is contained in:
drh
2021-07-04 22:33:08 +00:00
parent 24384d88d6
commit 4a4e02bc52
3 changed files with 16 additions and 7 deletions

View File

@@ -716,6 +716,15 @@ void sqlite3TreeViewExpr(TreeView *pView, const Expr *pExpr, u8 moreToFollow){
sqlite3TreeViewExpr(pView, &tmp, 0);
break;
}
case TK_ROW: {
if( pExpr->iColumn<=0 ){
sqlite3TreeViewLine(pView, "First FROM table rowid");
}else{
sqlite3TreeViewLine(pView, "First FROM table column %d",
pExpr->iColumn-1);
}
break;
}
default: {
sqlite3TreeViewLine(pView, "op=%d", pExpr->op);
break;