diff options
author | John Naylor <john.naylor@postgresql.org> | 2022-02-16 19:33:28 +0700 |
---|---|---|
committer | John Naylor <john.naylor@postgresql.org> | 2022-02-16 19:33:28 +0700 |
commit | 01ad1c953032ea2b88893d6a2f50fb4a8fea2873 (patch) | |
tree | 6c57e0d4010d310ea5992b49dd17e38ee81bb32f /src/backend/commands/typecmds.c | |
parent | 9ed87a78e0377728588e5c8688202195694581aa (diff) | |
download | postgresql-01ad1c953032ea2b88893d6a2f50fb4a8fea2873.tar.gz postgresql-01ad1c953032ea2b88893d6a2f50fb4a8fea2873.zip |
Add missing TYPEALIGN macros
A couple call sites still had hard-coded characters.
Amul Sul
Discussion: https://www.postgresql.org/message-id/CAAJ_b94Y35MWB3PJoCbc_O-_Q4%2B-9DHKhWtAwboEyx8wm4mqcA%40mail.gmail.com
Diffstat (limited to 'src/backend/commands/typecmds.c')
-rw-r--r-- | src/backend/commands/typecmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/typecmds.c b/src/backend/commands/typecmds.c index 053d1547532..9b92b042420 100644 --- a/src/backend/commands/typecmds.c +++ b/src/backend/commands/typecmds.c @@ -1895,10 +1895,10 @@ makeMultirangeConstructors(const char *name, Oid namespace, allParamTypes = ObjectIdGetDatum(rangeArrayOid); allParameterTypes = construct_array(&allParamTypes, 1, OIDOID, - sizeof(Oid), true, 'i'); + sizeof(Oid), true, TYPALIGN_INT); paramModes = CharGetDatum(FUNC_PARAM_VARIADIC); parameterModes = construct_array(¶mModes, 1, CHAROID, - 1, true, 'c'); + 1, true, TYPALIGN_CHAR); myself = ProcedureCreate(name, /* name: same as multirange type */ namespace, false, /* replace */ |