Commit 2f10970
committed
Fix incorrect mutability in GUC assign hook macro
The assign hook for strings requires a `const char *` rather than `char *`.
This adds `RawConst` and `from_raw_const` to the `GucValue` trait for
the `pg_guc_hook(assign)` macro to use.
Tests for the `pg_guc_hook` macro are now generated in `pgrx-unit-tests`
and include all `GucValue` types.1 parent 58147f1 commit 2f10970
3 files changed
Lines changed: 309 additions & 201 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1596 | 1596 | | |
1597 | 1597 | | |
1598 | 1598 | | |
1599 | | - | |
| 1599 | + | |
1600 | 1600 | | |
1601 | 1601 | | |
1602 | 1602 | | |
1603 | 1603 | | |
1604 | 1604 | | |
1605 | | - | |
| 1605 | + | |
1606 | 1606 | | |
1607 | 1607 | | |
1608 | 1608 | | |
| |||
0 commit comments