Uploaded image for project: 'SonarTSQL'
  1. SonarTSQL
  2. SONARTSQL-219

Parse error on empty PROCEDURE body

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: Parser
    • Labels:
      None

      Description

      Although not explicitly mentioned in the official documentation, TSQL accepts empty PROCEDURE body in the context of a CREATE/ALTER/CREATE OR ALTER PROCEDURE. This was tested locally with mssql-server-2017.

      1. Allow TSQL plugin to parse such syntax.
      2. Create an external PR to SQL docs to update documentation accordingly.

      https://docs.microsoft.com/en-us/sql/t-sql/statements/alter-procedure-transact-sql?view=sql-server-2017
      https://docs.microsoft.com/en-us/sql/t-sql/statements/create-procedure-transact-sql?view=sql-server-2017

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alban.auzeill Alban Auzeill
                Reporter:
                christophe.zurn Christophe Zurn
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: