Bug in rename alias within a stored proc if select list calls a function
jbrune
Posts: 13 Bronze 1
in SQL Prompt
A bug that's a bit tough to find. The Rename Alias / Variable (F2) functionality does not work if there is a function in the select list and it's with a proc.
For example:
You won't be able to Rename _MyT unless you comment out the "MyFunction()" line or the "CREATE PROCEDURE" line.
For example:
CREATE PROCEDURE dbo.MyProc AS BEGIN SELECT CommonModule.MyFunction(), _MyT.MyColumn FROM MyTable _MyT END
You won't be able to Rename _MyT unless you comment out the "MyFunction()" line or the "CREATE PROCEDURE" line.
Tagged:
Comments
Thanks for noticing this! We've managed to reproduce this here, we'll hopefully investigate this week.
Regards,
James
Redgate Software