END CATCH appears on two lines in the Results

gbritton 2016-09-14 20:18:37

I have sql like:

BEGIN TRY
...
END TRY
BEGIN CATCH
...
END CATCH

After getting an estimated plan, I get two lines in the statement tree:

END CATC
H

alt text

Aaron Bertrand 2016-09-14 20:36:28
Thanks, I can repro this issue, we'll investigate.
Aaron Bertrand 2016-09-19 15:25:10
It seems that this is how the query text is rendered in the XML we received from SQL Server – there is a carriage return and line feed in that very spot, which makes it render that way in our statement tree.