Commit c0ee96f
Fix add_dimension assertion on NULL hypertable (#10327)
ts_dimension_add_general read the hypertable argument with a bare PG_GETARG_OID(0),
so a NULL argument left table_relid as InvalidOid and tripped an assertion in ts_dimension_add_internal.
Guard it with GETARG_NOTNULL_OID to reject NULL with a clear error, matching the dimension argument guard on the line above.
---------
Signed-off-by: Sven Klemm <31455525+svenklemm@users.noreply.github.com>
Co-authored-by: Sven Klemm <31455525+svenklemm@users.noreply.github.com>
(cherry picked from commit f757431)1 parent a64e125 commit c0ee96f
4 files changed
Lines changed: 6 additions & 1 deletion
File tree
- .unreleased
- src
- tsl/test
- expected
- sql
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1948 | 1948 | | |
1949 | 1949 | | |
1950 | 1950 | | |
1951 | | - | |
| 1951 | + | |
1952 | 1952 | | |
1953 | 1953 | | |
1954 | 1954 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
0 commit comments