Commit 98e6e8e
Add TRUNCATE DATABASE support
Parse TRUNCATE DATABASE differently from TRUNCATE TABLE and format
with the correct spacing in EXPLAIN output. ClickHouse uses different
spacing conventions for these two variants.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent d928cce commit 98e6e8e
File tree
4 files changed
+19
-13
lines changed- ast
- internal/explain
- parser
- testdata/02842_truncate_database
4 files changed
+19
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
721 | 722 | | |
722 | 723 | | |
723 | 724 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2332 | 2332 | | |
2333 | 2333 | | |
2334 | 2334 | | |
2335 | | - | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
2336 | 2341 | | |
2337 | 2342 | | |
2338 | 2343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6147 | 6147 | | |
6148 | 6148 | | |
6149 | 6149 | | |
| 6150 | + | |
6150 | 6151 | | |
6151 | 6152 | | |
| 6153 | + | |
| 6154 | + | |
| 6155 | + | |
6152 | 6156 | | |
6153 | 6157 | | |
6154 | 6158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
0 commit comments