Comments in named queries?

Comments are fine, it’s just that our parser is (currently) too dumb to distinguish a commented parameter from a legitimate one, so:

SELECT * FROM TABLE WHERE 
A = :param
--AND B = :param2

Should be fine, but is what currently throws an error, because the parser thinks it needs an additional value for param2.

2 Likes