Commit 730f9d2
committed
Add ALTER TABLE MODIFY COMMENT support
Implement parsing and explain output for ALTER TABLE ... MODIFY COMMENT
statements:
- Add AlterModifyComment command type to AST
- Add parser handling in MODIFY case for COMMENT token
- Add explain output handling for MODIFY_COMMENT command type
- Add child count handling for comment literal
This fixes 14 statements across 4 tests:
- 02111_modify_table_comment: stmt6, stmt10
- 02155_dictionary_comment: stmt13
- 02792_alter_table_modify_comment: stmt4, stmt9, stmt14, stmt19, stmt24, stmt29, stmt34, stmt39, stmt44, stmt49
- 03142_alter_comment_parameterized_view: stmt31 parent bb6a1c6 commit 730f9d2
7 files changed
Lines changed: 20 additions & 20 deletions
File tree
- ast
- internal/explain
- parser
- testdata
- 02111_modify_table_comment
- 02155_dictionary_comment
- 02792_alter_table_modify_comment
- 03142_alter_comment_parameterized_view
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
| 656 | + | |
656 | 657 | | |
657 | 658 | | |
658 | 659 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1210 | 1210 | | |
1211 | 1211 | | |
1212 | 1212 | | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
1213 | 1217 | | |
1214 | 1218 | | |
1215 | 1219 | | |
| |||
1392 | 1396 | | |
1393 | 1397 | | |
1394 | 1398 | | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
1395 | 1403 | | |
1396 | 1404 | | |
1397 | 1405 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4495 | 4495 | | |
4496 | 4496 | | |
4497 | 4497 | | |
| 4498 | + | |
| 4499 | + | |
| 4500 | + | |
| 4501 | + | |
| 4502 | + | |
| 4503 | + | |
| 4504 | + | |
| 4505 | + | |
4498 | 4506 | | |
4499 | 4507 | | |
4500 | 4508 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
Lines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 4 | + | |
15 | 5 | | |
16 | 6 | | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
0 commit comments