Header comment on stored procedure #1362
Comments
+1 for this one, Can be worked around by making header comments inside procedures, but with a DB with hundreds of Stored Proc it's a little more annoying. |
What version of Flyway are you using? What database are you using (type & version)? What operating system are you using? The same issue as above. |
What version of Flyway are you using? What operating system are you using? The same issue as above (with Stored procedures, Functions, Views) . |
What version of Flyway are you using? What database are you using (type & version)? What operating system are you using? The same issue as above with stored procs |
This seems to be deliberate by design?
If this is the case, we could override what exists for the SQLServer class so that the nonCommentStatementPartSeen returns true (although this is a messy solution). From my understanding, the problem is that multiple lines starting with "--" are treated as single line comments rather than the multi-line comments they are. Flyway, will then discard them. @axelfontaine, can you please advise? Thanks, |
This has now been implemented. Headers comments are now properly preserved. |
@axelfontaine: This fix has caused a new issue. Single-line comments that start with Prior to the fix (version 5.0.7 and below), comments like this are discarded. Example:
See #2081 |
What version of Flyway are you using?
4.0.3
What database are you using (type & version)?
Microsoft SQL Server 2014 - 12.0.4100.1 (X64)
What operating system are you using?
Microsoft Windows [Version 10.0.10586]
What did you do?
-- =============================================
-- Description: ...
-- =============================================
CREATE PROCEDURE dwh.p_address_save () AS
BEGIN
...
END;
After compile this procedure in Managment Studio i see comment in DDL statment. After Flyway disapear.
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: