diff options
author | Alexander Korotkov <akorotkov@postgresql.org> | 2023-04-27 22:06:14 +0300 |
---|---|---|
committer | Alexander Korotkov <akorotkov@postgresql.org> | 2023-04-27 22:06:14 +0300 |
commit | db93e739ac61332126207b16f14da93f8ecac594 (patch) | |
tree | 5a75223d955e654680b5289c57ffe865bd1ecfd0 /src | |
parent | df38157d94662a64e2f83aa8a0110fd1ee7c4776 (diff) | |
download | postgresql-db93e739ac61332126207b16f14da93f8ecac594.tar.gz |
Fix wrong construct_array_builtin() call in GUCArrayDelete()
The current code unintentionally uses the wrong datum to construct an array.
The bug was introduced by 096dd80f3c, so no backpatching is needed.
Reported-by: David Steele
Discussion: https://postgr.es/m/d46f9265-ff3c-6743-2278-6772598233c2%40pgmasters.net
Author: Nathan Bossart
Reviewed-by: David Steele, Tom Lane
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/misc/guc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 9dd624b3ae..53d1d9a06a 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -6496,7 +6496,8 @@ GUCArrayDelete(ArrayType *array, ArrayType **usersetArray, const char *name) { newarray = construct_array_builtin(&d, 1, TEXTOID); if (usersetArray) - newUsersetArray = construct_array_builtin(&d, 1, BOOLOID); + newUsersetArray = construct_array_builtin(&userSetDatum, 1, + BOOLOID); } index++; |