diff options
author | drh <> | 2024-04-26 11:32:50 +0000 |
---|---|---|
committer | drh <> | 2024-04-26 11:32:50 +0000 |
commit | fed13d50a98b1c173449e0626dd3bb19f791e495 (patch) | |
tree | 2d816439253c69e79e1463aaca988df68be0931b /src/treeview.c | |
parent | ec14ef80b03eb0b7bd05a6ce3beb07c9601bde63 (diff) | |
download | sqlite-fed13d50a98b1c173449e0626dd3bb19f791e495.tar.gz sqlite-fed13d50a98b1c173449e0626dd3bb19f791e495.zip |
Fix the TreeView display of a LIMIT clause on a compound query. Debugging
code only - not part of production builds.
FossilOrigin-Name: 38f1e5ce4eedd59fbeb0a0d676d26dfe8a3313189ab9b9e4a5a1ed6721b73a14
Diffstat (limited to 'src/treeview.c')
-rw-r--r-- | src/treeview.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/treeview.c b/src/treeview.c index c223db29e..d3346b468 100644 --- a/src/treeview.c +++ b/src/treeview.c @@ -346,7 +346,7 @@ void sqlite3TreeViewSelect(TreeView *pView, const Select *p, u8 moreToFollow){ sqlite3TreeViewItem(pView, "LIMIT", (n--)>0); sqlite3TreeViewExpr(pView, p->pLimit->pLeft, p->pLimit->pRight!=0); if( p->pLimit->pRight ){ - sqlite3TreeViewItem(pView, "OFFSET", (n--)>0); + sqlite3TreeViewItem(pView, "OFFSET", 0); sqlite3TreeViewExpr(pView, p->pLimit->pRight, 0); sqlite3TreeViewPop(&pView); } |