Hello all,

I am attaching a patch for MDEV-8356 as part of my work under GSoC2015 implementing table valued functions.

Please feel free to point out mistakes, if any.

regards
Diwas Joshi