Skip to content

Query lines that end with a comment are removed #15

@NCRonB

Description

@NCRonB

Given a query like this:

-- query: TestQuery
SELECT
	id, grass
FROM
	mytable
WHERE
	id != 3 -- this is a valid comment
	AND grass = 'Green';

The entire id != 3 line is removed, and the query ends up as this invalid statement:

SELECT id, grass FROM mytable WHERE AND grass = 'Green';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions