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

Missing indentation after WHILE

  • SQL Prompt version: 10.14.4.4865
  • SQL Server Management Studio version: 19.2.56.2
  • SQL Server Version:
    • Microsoft SQL Azure (RTM) - 12.0.2000.8
    • Microsoft SQL Server 2022 (RTM-GDR) (KB5029379) - 16.0.1105.1 (X64)
  • Database Compatibility Level: 160
  • Active Style: Default

Before formatting

DECLARE @i INT = 1;

IF @i = 1
    SET @i = 2;

WHILE @i = 2
    SET @i = 3;
  • This is the expected result

After formatting

DECLARE @i INT = 1;

IF @i = 1
    SET @i = 2;

WHILE @i = 2
SET @i = 3;
  • Indentation is missing after WHILE
orderbynewid
0

Comments

2 comments

  • Ben_P
    Hi there,

    Thank you for your post. This has been forwarded to the dev team for investigation.
    Ben_P
    0
  • orderbynewid
    I can confirm that this has been fixed in SQL Prompt version 10.14.6.5992.
    orderbynewid
    0

Add comment

Please sign in to leave a comment.