Commit 28717df
Support RENAME DATABASE statement
Add parsing and explain support for RENAME DATABASE statements.
Changes:
- Add RenameDatabase field to RenameQuery AST
- Update parser to handle RENAME DATABASE syntax
- Update explain to output correct format for database renames
- Fixes 01155_rename_move_materialized_view stmt44, stmt52
- Also fixes 02096_rename_atomic_hang stmt14
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 99534b0 commit 28717df
File tree
5 files changed
+34
-19
lines changed- ast
- internal/explain
- parser
- testdata
- 01155_rename_move_materialized_view
- 02096_rename_atomic_hang
5 files changed
+34
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
981 | 981 | | |
982 | 982 | | |
983 | 983 | | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
991 | 992 | | |
992 | 993 | | |
993 | 994 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
723 | 743 | | |
724 | 744 | | |
725 | 745 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6922 | 6922 | | |
6923 | 6923 | | |
6924 | 6924 | | |
6925 | | - | |
| 6925 | + | |
6926 | 6926 | | |
6927 | 6927 | | |
6928 | 6928 | | |
6929 | 6929 | | |
| 6930 | + | |
| 6931 | + | |
| 6932 | + | |
6930 | 6933 | | |
6931 | 6934 | | |
6932 | 6935 | | |
| |||
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
0 commit comments