Nathan Biggs <[EMAIL PROTECTED]> wrote: > hello all, > > I was wondering if it is possible to create an aggregate function that > uses 3 parameters in PHP. I am able to create a function that uses 1 > parameter, but when I add a second one, php runs out of memory. I know > that this is probably not the place to post this, but just thought that > someone subscribed to this may be experiencing the same issue. >
It is possible to create aggregate functions with 2 parameters in the SQLite core, as is demonstrated by the group_concat() function. I just looked, and there are no test cases in the test suite that verify that you can create an aggregate function with 3 or more arguments. (Probably this is something that should be added.) But if it works for 2, it probably works for all number up to 100 (the upper bound on the number of arguments to a function.) I'm thinking this is most likely a bug in PHP. If you learn otherwise, please let me know. -- D. Richard Hipp <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------