Hey all!
Today I noticed that SQL Prompt seems to be blissfully unaware of the new IGNORE NULLS and RESPECT NULLS optional keywords for the LAG and LEAD functions. However, when used with FIRST_VALUE or LAST_VALUE, they are recongized just fine.
(In your defense, Management Studio itself bothces this up with both LAG and LEAD, as well as FIRST_VALUE and LAST_VALUE, so you still win
)

Repro example, on e.g. AdventureWorks2017 demo database.
Start with this query:
Choose Format SQL (Ctrl-K, Ctrl-Y) and notice that now, the keyword is only partially capitalized:
Shown with LEAD above, but the exact same happens with LAG.
It would be nice if this can be fixed in a future version.
Oh, and it would also be nice to not have all these options on one long line, I would prefer the Format SQL to produce output like this:
Comments
5 comments
-
Also, WOW! Those code samples, pasted in using the "Code" format, are really totally displayed wrong!
-
Hi Hugo,
Thanks for bringing this to our attention. I will pass this information on to our developers so they can take a look at it and work on a fix.
-
Hi Hugo,
Our developers have created a ticket for this and have it in their queue for a fix. I don't have a time frame of when that will be, but they do have it on their radar. Thanks again for pointing this out and bringing it to our attention! -
JoshH said:Hi Hugo,
Our developers have created a ticket for this and have it in their queue for a fix. I don't have a time frame of when that will be, but they do have it on their radar. Thanks again for pointing this out and bringing it to our attention!
It's good to know the issue is being addressed by the developers. While the timeline isn't clear, it's reassuring that it's on their radar. Thanks for keeping us updated! Null Brawl
-
JoshH said:Hi Hugo,
Our developers have created a ticket for this and have it in their queue for a fix. I don't have a time frame of when that will be, but they do have it on their radar. Thanks again for pointing this out and bringing it to our attention!
Our developers have prioritized this issue and created a ticket for it. While I can't provide a specific timeline, it's on their radar. Thanks for highlighting it and keeping us informed! Null Brawl
Add comment
Please sign in to leave a comment.