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

Server shutting down when using CASE keyword #65

Open
JacobDer opened this issue Sep 9, 2021 · 3 comments
Open

Server shutting down when using CASE keyword #65

JacobDer opened this issue Sep 9, 2021 · 3 comments
Assignees

Comments

@JacobDer
Copy link

JacobDer commented Sep 9, 2021

Bug Description
When I attempt to use CASE in a query, the server shuts down right after I type the word and no more suggestions are made. If I press esc to return to normal mode I am shown a message Client 1 quit with exit code 2 and signal 0.

To Reproduce
Example reproduction:

  1. With sqls active, type SELECT CASE W
  2. Press esc to return to normal mode

Expected behavior
After typing SELECT CASE W, there should be suggestions for keywords which begin with 'W' and the server should not shut down unexepectedly.

Versions:

  • OS Version: macOS 12
  • sqls Version: latest
@lighttiger2505 lighttiger2505 self-assigned this Sep 9, 2021
@darrenhp
Copy link

I found code like this will make it stackoverflow

select case
           when age>=25 WH

@Frytak
Copy link

Frytak commented Mar 14, 2024

Just the word "case" is making the servers' stack to overflow. It can even just be in a string such as in this query.

INSERT INTO answers (answer) VALUES ("Camel case");

And the issue is still not even touched from what I see 😭

@murtaza98
Copy link

Hi @lighttiger2505 @mattn @hsanson Any insights on how we can fix this issue?

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

5 participants