Open DanCorder opened 6 years ago
What seems to be happening is that the newline character is getting stripped out of the CDATA section. We are investigating why this is happening, but I believe in the mean time you can put a "\n" character at the end of your comments and it should work.
Please note that the newline appears to only be stripped out for the validation step. As far as I can tell it is not stripped out when generating the actual output package. See the linked stackoverflow question for my experiments.
I'm submitting a...
Current behavior
When compiling a BIML file containing a variable that contains "--" SQL comments within a CDATA block, a validation step in the compilation of the file can fail. This appears to be because during the validation step any linebreaks are stripped from the variable text, so that any SQL after the comment becomes part of the comment.
Note that the linebreaks are not stripped out in the final compiled SSIS package.
More details here.
Expected behavior
The SQL validation should pass
Minimal reproduction of the problem with instructions
Try to compile this file:
What is the motivation / use case for changing the behavior?
I would like to be able to write SQL in variables without having to escape "<" and ">"
Environment