Bug #68503 Please add "ROW_RESULT" arguments for UDFs
Submitted: 27 Feb 2013 1:27
Reporter: Roland Bouman Email Updates:
Status: Open Impact on me:
Category:MySQL Server Severity:S4 (Feature request)
Version: OS:Any
Assigned to: CPU Architecture:Any

[27 Feb 2013 1:27] Roland Bouman
Please allow UDF functions to receive an array of values within a single argument. For instance a query like, 

SELECT myudf(*) from table
SELECT myudf(tab.*) from table tab INNER JOIN ...etc

should be able to pass all implied columns of the respective tables to the UDF.
The UDF_ARGS args->arg_type[x] entry should be ROW_RESULT.
The args->args[x] could be used to pass another UDF_ARGS pointer that represents all columns implied by the *. 

Suggestions above represent about the minimal but sufficient change from a UDF author point of view to make this feature useful. 

How to repeat:

Suggested fix: