79211615

Date: 2024-11-21 14:34:15
Score: 2
Natty:
Report link

Adding the attribute splitStatements="true" to the sql tag resolved the issue. Thanks to the tip provided by @siggemannen.

Updated code

<changeSet author="me" id="poc" runAlways="true" runOnChange="true" >
 <sql splitStatements="true">
  BEGIN
      DECLARE @MyVariable INT;
      SET @MyVariable = 10;
  END;
 </sql>
</changeSet>
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • User mentioned (1): @siggemannen
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Rick