Re: [PATCHES] [SQL] ARRAY() returning NULL instead of ARRAY[] resp.

2005-05-31 Thread Joe Conway
Tom Lane wrote: Joe Conway <[EMAIL PROTECTED]> writes: + Oid element_type = planstate->ps_ResultTupleSlot->tts_tupleDescriptor->attrs[0]->atttypid; Hmm, that makes me itch ... it seems like unwarranted familiarity with the innards of the subplan; not only as to whe

Re: [PATCHES] [SQL] ARRAY() returning NULL instead of ARRAY[] resp. {}

2005-05-31 Thread Tom Lane
Joe Conway <[EMAIL PROTECTED]> writes: >> +Oid element_type = >> planstate->ps_ResultTupleSlot->tts_tupleDescriptor->attrs[0]->atttypid; Hmm, that makes me itch ... it seems like unwarranted familiarity with the innards of the subplan; not only as to where it keeps things,

Re: [PATCHES] [SQL] ARRAY() returning NULL instead of ARRAY[] resp. {}

2005-05-31 Thread Joe Conway
Joe Conway wrote: OK, looks like I'm outnumbered. But as far as I know, we have never had a way to produce a one-dimensional empty array. Empty arrays thus far have been dimensionless. Assuming we really want an empty 1D array, I created the attached patch. This works fine, but now leaves a