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

Panic when parsing valid SQL SELECT '1', '2' or any malformed SQL like SELECT * FROM table UNION #29

Open
localhosted opened this issue Aug 18, 2022 · 2 comments

Comments

@localhosted
Copy link

Whenever there is malformed SQL the formatter panics

It also considers valid SQL like SELECT without FROM, as invalid an panics

@noneymous
Copy link

I think it works if you are not using v0.0.1 but the latest commit.

@noneymous
Copy link

This repository seems to be abandoned, so I've created a fork, applied some patches and restructured and cleaned-up the whole code. Hope it is an improvement for some, might improve it further...

https://github.com/noneymous/go-sqlfmt

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