Table function column names beginning with an @
rhodrie
Posts: 18 Bronze 3
CREATE FUNCTION fn_MyQuery () RETURNS TABLE AS RETURN (SELECT 'test' [@Attribute], 'element' [Element]); GO SELECT fn_m.* FROM fn_MyQuery() fn_m FOR XML PATH ('Test'), TYPE, ELEMENTS
In the above example SQL Prompt (6.1.0.67) identifies fn_MyQuery as having one parameter @Attribute, returning a single column Element.
Comments
Thanks for reporting this, I can recreate it here and will look into a fix for you. Seems like we pull down the columns and parameters in a single query and then differentiate them based on if they start with an '@', which clearly doesn't work in this case!
Thanks,
Aaron.
Thanks again for reporting it!