Commit dc14156
committed
sql: ensure comments are looked up for create_type_statements
Previously, crdb_internal.create_type_statements did not look up comment
metadata for point lookup indexes. This could lead to missing comments
or an assertion firing on test builds. To address this, this patch adds
a new WithMetaData flag in the collections which can be combined for
leased descriptor scenarios like this. This allows a point lookup of
comments to be used when using leased descriptors for catalog views.
Corrected Version
Fixes: #157916
Release note: None1 parent e837db7 commit dc14156
File tree
6 files changed
+25
-6
lines changed- pkg/sql
- catalog/descs
- logictest
- testdata/logic_test
- tests/local-leased-descriptors
6 files changed
+25
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
533 | 541 | | |
534 | 542 | | |
535 | 543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3227 | 3227 | | |
3228 | 3228 | | |
3229 | 3229 | | |
3230 | | - | |
| 3230 | + | |
3231 | 3231 | | |
3232 | 3232 | | |
3233 | 3233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
Lines changed: 7 additions & 0 deletions
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 | |
|---|---|---|---|
| |||
3796 | 3796 | | |
3797 | 3797 | | |
3798 | 3798 | | |
3799 | | - | |
| 3799 | + | |
3800 | 3800 | | |
3801 | | - | |
| 3801 | + | |
| 3802 | + | |
| 3803 | + | |
| 3804 | + | |
| 3805 | + | |
3802 | 3806 | | |
3803 | 3807 | | |
3804 | 3808 | | |
| |||
3897 | 3901 | | |
3898 | 3902 | | |
3899 | 3903 | | |
3900 | | - | |
| 3904 | + | |
3901 | 3905 | | |
3902 | 3906 | | |
3903 | 3907 | | |
| |||
0 commit comments