Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support comments #9

Open
mwotton opened this issue Dec 30, 2019 · 1 comment
Open

support comments #9

mwotton opened this issue Dec 30, 2019 · 1 comment

Comments

@mwotton
Copy link

mwotton commented Dec 30, 2019

I have some large chunks of pre-existing sql that are heavily commented, to make it clear what's going on. Unfortunately hasql-th doesn't seem to cope:

select   "bar" :: text as subnets

works fine, but

select   "bar" :: text as subnets -- foo

gives me this:

 |         
1 | select   "bar" :: text as subnets -- foo
  |                                   ^
unexpected '-'
expecting end of input or white space
@nikita-volkov
Copy link
Owner

This will require an extension to the parser. I'm leaving this for PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants