Re: [BUGS] empty array can crash backend using int_array_enum from contrib.

2005-04-23 Thread Tom Lane
Andrew - Supernews <[EMAIL PROTECTED]> writes: > We were discussing this one on irc while it was presumably waiting in the > moderation queue, and I suggested to the poster an alternative patch that > allowed empty arrays to actually be treated as empty (your version will > error out on int_array_e

Re: [BUGS] empty array can crash backend using int_array_enum from contrib.

2005-04-22 Thread Andrew - Supernews
On 2005-04-23, Tom Lane <[EMAIL PROTECTED]> wrote: > Ron Mayer <[EMAIL PROTECTED]> writes: >> Using the int_array_enum function from contrib/intagg I can crash the >> 8.0.2 backend when I pass it an empty array. > > Man, we've had a few problems with that thing, haven't we? > > I patched it along t

Re: [BUGS] empty array can crash backend using int_array_enum from contrib.

2005-04-22 Thread Tom Lane
Ron Mayer <[EMAIL PROTECTED]> writes: > Using the int_array_enum function from contrib/intagg I can crash the 8.0.2 > backend when I pass it an empty array. Man, we've had a few problems with that thing, haven't we? I patched it along these lines: *** contrib/intagg/int_aggregate.c.orig Thu Apr

[BUGS] empty array can crash backend using int_array_enum from contrib.

2005-04-22 Thread Ron Mayer
Using the int_array_enum function from contrib/intagg I can crash the 8.0.2 backend when I pass it an empty array. fli=# select int_array_enum('{}'::int[]); server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the