Repository navigation
Commit 4901dde
fix(golang): resolve one domain at a time on the core path
resolveDomains replaced a whole chain of domains with the last base, so
goInnerType never checked an override on a domain in the middle of the
chain: with validated_id AS id AS text, a db_type override on id
generated string. Replace one domain per step, as the legacy path does,
and let goInnerType check overrides between steps.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 0d0e784 commit 4901dde
4 files changed
Lines changed: 21 additions & 3 deletions
File tree
- internal
- codegen/golang
- endtoend/testdata/domain_types/postgresql_core
- go
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
| |||
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 | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments