From cecb6075594a407b7adcd9c9a0c243ca4b43c9a3 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 17 Nov 2005 22:14:56 +0000 Subject: Make SQL arrays support null elements. This commit fixes the core array functionality, but I still need to make another pass looking at places that incidentally use arrays (such as ACL manipulation) to make sure they are null-safe. Contrib needs work too. I have not changed the behaviors that are still under discussion about array comparison and what to do with lower bounds. --- contrib/intagg/int_aggregate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/intagg') diff --git a/contrib/intagg/int_aggregate.c b/contrib/intagg/int_aggregate.c index 3c7bb7ff87..afe5dd526f 100644 --- a/contrib/intagg/int_aggregate.c +++ b/contrib/intagg/int_aggregate.c @@ -87,7 +87,7 @@ GetPGArray(PGARRAY * p, AggState *aggstate, bool fAdd) p = (PGARRAY *) MemoryContextAlloc(aggstate->aggcontext, cb); p->a.size = cb; p->a.ndim = 1; - p->a.flags = 0; + p->a.dataoffset = 0; /* we don't support nulls, for now */ p->a.elemtype = INT4OID; p->items = 0; p->lower = START_NUM; -- cgit v1.2.1