We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56c8877 commit 0548497Copy full SHA for 0548497
contrib/intagg/int_aggregate.c
@@ -242,6 +242,9 @@ int_enum(PG_FUNCTION_ARGS)
242
pc->p = p;
243
pc->flags = 0;
244
}
245
+ /* Now that we have a detoasted array, verify dimensions */
246
+ if (pc->p->a.ndim != 1)
247
+ elog(ERROR, "int_enum only accepts 1-D arrays");
248
pc->num = 0;
249
fcinfo->context = (Node *) pc;
250
MemoryContextSwitchTo(oldcontext);
0 commit comments