Rafael Valente wrote:
Hello there,
You can use the "--" for comments as long as you don't use it inside the whole SELECT statement.
Best regards,
Rafael Valente
Yeah that was kindof allready known...
This is a BUG in the SQL parser; period.
Outsystems should parse the part having -- to make sure they don't remove the linebreak from that line before they remove all CR/LB to "minify" the query and replace all variables with the input parameters.
-- is a perfectly good single line comment indicator
https://msdn.microsoft.com/nl-nl/library/ms181627.aspx
Quote: "Comments inserted with -- are terminated by the newline character."
So don't remove the newline there; it's there for a reason.