aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/commands/extension.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/backend/commands/extension.c b/src/backend/commands/extension.c
index 2d761a5773f..560064d3e1f 100644
--- a/src/backend/commands/extension.c
+++ b/src/backend/commands/extension.c
@@ -2597,14 +2597,13 @@ extension_config_remove(Oid extensionoid, Oid tableoid)
{
/* squeeze out the target element */
Datum *dvalues;
- bool *dnulls;
int nelems;
int i;
+ /* We already checked there are no nulls */
deconstruct_array(a, OIDOID, sizeof(Oid), true, 'i',
- &dvalues, &dnulls, &nelems);
+ &dvalues, NULL, &nelems);
- /* We already checked there are no nulls, so ignore dnulls */
for (i = arrayIndex; i < arrayLength - 1; i++)
dvalues[i] = dvalues[i + 1];
@@ -2644,14 +2643,13 @@ extension_config_remove(Oid extensionoid, Oid tableoid)
{
/* squeeze out the target element */
Datum *dvalues;
- bool *dnulls;
int nelems;
int i;
+ /* We already checked there are no nulls */
deconstruct_array(a, TEXTOID, -1, false, 'i',
- &dvalues, &dnulls, &nelems);
+ &dvalues, NULL, &nelems);
- /* We already checked there are no nulls, so ignore dnulls */
for (i = arrayIndex; i < arrayLength - 1; i++)
dvalues[i] = dvalues[i + 1];