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

Invalid SQL leads to stack overflow #112

Open
bahadirozavci2 opened this issue Nov 8, 2022 · 0 comments
Open

Invalid SQL leads to stack overflow #112

bahadirozavci2 opened this issue Nov 8, 2022 · 0 comments

Comments

@bahadirozavci2
Copy link

Describe the bug
Parsing an invalid SQL like select (case a when 'a' then b) leads to stack overflow.

To Reproduce
Run parsed, err := parser.Parse("select (case a when 'a' then b)")

Expected behavior
A graceful failure.

Versions (please complete the following information):

  • OS Version: MacOS 12.6
  • sqls Version 0.2.20
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

1 participant