-
Notifications
You must be signed in to change notification settings - Fork 54
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
parser error in Windows #26
Labels
Comments
This is definitely a bug based on Windows newline endings of I'll get a fix for this into the next patch release. Thank you for the report! user=> (keys (hugsql/map-of-db-fns-from-string "-- :snip one\nselect *\n-- :snip two\nfrom test"))
(:one :two)
user=> (keys (hugsql/map-of-db-fns-from-string "-- :snip one\r\nselect *\r\n-- :snip two\r\nfrom test"))
(:one) |
csummers
added a commit
that referenced
this issue
Feb 25, 2016
Wonderful, thank you! |
This is released in 0.4.3. Please confirm this fixes the issue. Thanks! |
Yes, that fixed it. Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On a Mac, if I run
(println (keys (hugsql/map-of-db-fns "hugsql/sql/test.sql")))
, I get 34 keys, but if I run it on a Windows machine I only get one. I think this might have something to do with how the parser is treating newlines, but I haven't been able to isolate it.The text was updated successfully, but these errors were encountered: