Commit 8fedb49
fix: SQL SHOW TABLES/VIEWS and DESCRIBE fail for all drivers
The grammar rule used bare IDENTIFIER for the target in
SQL <alias> SHOW TABLES and SQL <alias> DESCRIBE <table>,
but TABLES, VIEWS etc. are dedicated lexer tokens that don't
match IDENTIFIER. The command fell through to the sqlQuery
passthrough rule, sending raw "SHOW TABLES" to the database
which fails on Oracle (ORA-00900) and SQL Server.
Changed to identifierOrKeyword which matches both identifiers
and keyword tokens. Updated visitor to use IdentifierOrKeyword()
accordingly.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b59c4fa commit 8fedb49
File tree
4 files changed
+51
-35
lines changed- mdl
- grammar
- parser
- visitor
4 files changed
+51
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2918 | 2918 | | |
2919 | 2919 | | |
2920 | 2920 | | |
2921 | | - | |
2922 | | - | |
| 2921 | + | |
| 2922 | + | |
2923 | 2923 | | |
2924 | 2924 | | |
2925 | 2925 | | |
| |||
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.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments