Skip to content

Inline comments in queries not being parsed out #270

@wleev

Description

@wleev

Sample query:

SELECT * FROM users
WHERE id = sqlc.arg(user_id) -- this is a comment
LIMIT 1;

Will result in an invalid query in the generated C# code, since comment will be included.

Tested with:

  • sqlc-gen-csharp: v0.21.0
  • sqlc: v1.29.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions