Commit 734ba84
Handle SETTINGS/COMMENT order in CREATE TABLE explain output
When COMMENT comes before SETTINGS in a CREATE TABLE statement, SETTINGS
should be output at the CreateQuery level (outside Storage definition).
When SETTINGS comes before COMMENT, it stays inside Storage definition.
Added SettingsBeforeComment field to track the order in the AST.
Fixes:
- 03234_enable_secure_identifiers stmt11, stmt14
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent cbc4d68 commit 734ba84
File tree
4 files changed
+26
-11
lines changed- ast
- internal/explain
- parser
- testdata/03234_enable_secure_identifiers
4 files changed
+26
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
| 295 | + | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
219 | 222 | | |
220 | 223 | | |
221 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
222 | 229 | | |
223 | 230 | | |
224 | 231 | | |
| |||
347 | 354 | | |
348 | 355 | | |
349 | 356 | | |
350 | | - | |
| 357 | + | |
351 | 358 | | |
352 | 359 | | |
353 | 360 | | |
| |||
369 | 376 | | |
370 | 377 | | |
371 | 378 | | |
372 | | - | |
| 379 | + | |
373 | 380 | | |
374 | 381 | | |
375 | 382 | | |
| |||
514 | 521 | | |
515 | 522 | | |
516 | 523 | | |
517 | | - | |
| 524 | + | |
518 | 525 | | |
519 | 526 | | |
520 | 527 | | |
| |||
547 | 554 | | |
548 | 555 | | |
549 | 556 | | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
550 | 561 | | |
551 | 562 | | |
552 | 563 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2687 | 2687 | | |
2688 | 2688 | | |
2689 | 2689 | | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
2690 | 2694 | | |
2691 | 2695 | | |
2692 | 2696 | | |
| |||
2695 | 2699 | | |
2696 | 2700 | | |
2697 | 2701 | | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
2698 | 2706 | | |
2699 | 2707 | | |
2700 | 2708 | | |
| |||
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
0 commit comments