How can we help you today? How can we help you today?

keywords as alias issues

When using the "Format SQL" feature, it's failing/removing brackets when the alias is a SQL keyword.
select top 1  [start] = 'wwww', [end] = 'xxxx'
from sys.objects o

select top 1  'wwww' as 'start','xxxx' as 'end'
from sys.objects o

formats to:
select top 1  start = 'wwww', [end] = 'xxxx'
from sys.objects o;

select top 1  start = 'wwww',end = 'xxxx'
from sys.objects o;
ggeier
0

Comments

2 comments

Add comment

Please sign in to leave a comment.