sqls
sqls copied to clipboard
Server shutting down when using CASE keyword
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:
- With sqls active, type
SELECT CASE W
- 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
I found code like this will make it stackoverflow
select case
when age>=25 WH
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 😭