← Back to team overview

maria-discuss team mailing list archive

Re: GSOC 2015 :UDFs returning arrays

 

Hi!

On 10.03.15 21:01, Justin Swanhart wrote:
[accidentally replied only to sender, pasting reply here to all]

Hi,

So how exactly would you go about returning a row type? You get four choices with UDF:
STRING_RESULT
INT_RESULT
REAL_RESULT
DECIMAL_RESULT (which is handled just like strings, because decimal was a string when UDF interface was baked)

You can't change the UDF specification.  It is not versioned :)

I was talking about server internal support which is:
enum Item_result
{
  STRING_RESULT=0, REAL_RESULT, INT_RESULT, ROW_RESULT, DECIMAL_RESULT,
  TIME_RESULT,IMPOSSIBLE_RESULT
};

and UDF also can support more :)

[skip]


Follow ups

References