The original description has a lot of superfluous noise. The attached test cases are good indications of what happens. Basically we do not properly handle the case where a "line comment" delimiter occurs within a (VAR)CHAR literal. For example, from the test case:
{code} "select coalesce(i.name, '--NONE--') as itname from Item i where i.intVal=?" {code}
we see the {{--}} at the start of {{--NONE}} as the start of a line comment.
|
|