Repository navigation
Commit d7d59c3
fix(golang): give a domain column the struct tags of its base's override
An override on a domain's base type supplied the column's Go type, but
its go_struct_tag was matched only against the domain's own name and so
was dropped. Walk the domain to its base for tags the way goInnerType
does for the type, stopping where an override names the type, and
apply the domain's and column's own tags over the base's.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c7f4217 commit d7d59c3
3 files changed
Lines changed: 17 additions & 1 deletion
File tree
- internal
- codegen/golang
- endtoend/testdata/domain_types/postgresql
- go
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
39 | 54 | | |
40 | 55 | | |
41 | 56 | | |
| |||
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 | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
0 commit comments