Repository navigation
Commit 13b8ca8
fix(postgresql): honor NOT NULL on a domain
A column typed with a domain declared NOT NULL was still nullable, so
its Go field was a nullable wrapper for a value that can never be NULL.
A column of such a domain is now NOT NULL, as PostgreSQL enforces it;
an array of one may still be NULL, and the optional side of an outer
join is still nullable.
Fixes #3265
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent bcd8bb8 commit 13b8ca8
5 files changed
Lines changed: 18 additions & 8 deletions
File tree
- internal
- endtoend/testdata
- codegen_json_domains_postgresql/gen
- domain_types/postgresql
- go
- sql/catalog
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
68862 | 68862 | | |
68863 | 68863 | | |
68864 | 68864 | | |
68865 | | - | |
| 68865 | + | |
68866 | 68866 | | |
68867 | 68867 | | |
68868 | 68868 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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 | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
360 | 369 | | |
361 | 370 | | |
362 | 371 | | |
| |||
0 commit comments