Commit f26a27e
fix: bare STATUS and SHOW STATUS commands now work (issue #470)
Three problems fixed:
1. Grammar: add standalone `statusStatement: STATUS ;` wired into
`utilityStatement`, so `STATUS` parses outside of a SHOW context.
2. Visitor (ExitShowStatement): `SHOW STATUS` (without CATALOG) was
silently dropped because the STATUS token was only checked inside
the CATALOG branch. Added a new `ctx.STATUS() != nil` branch (after
CATALOG so SHOW CATALOG STATUS is unaffected) that emits StatusStmt.
3. Visitor (ExitHelpStatement): removed dead `case "status"` — STATUS
is a lexer keyword so it can never match IDENTIFIER, making this
branch unreachable.
Both `STATUS;` and `SHOW STATUS;` now print connection status.
`SHOW CATALOG STATUS` is unaffected.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f70a741 commit f26a27e
8 files changed
Lines changed: 9646 additions & 9465 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3467 | 3467 | | |
3468 | 3468 | | |
3469 | 3469 | | |
| 3470 | + | |
3470 | 3471 | | |
3471 | 3472 | | |
3472 | 3473 | | |
| |||
3497 | 3498 | | |
3498 | 3499 | | |
3499 | 3500 | | |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
3500 | 3505 | | |
3501 | 3506 | | |
3502 | 3507 | | |
| |||
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | 224 | | |
226 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
227 | 229 | | |
228 | 230 | | |
229 | 231 | | |
| |||
1033 | 1035 | | |
1034 | 1036 | | |
1035 | 1037 | | |
1036 | | - | |
1037 | | - | |
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
| |||
0 commit comments