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

Harlequin does not run previous query when current query is only whitespace #493

Closed
tconbeer opened this issue Mar 29, 2024 · 0 comments · Fixed by #494
Closed

Harlequin does not run previous query when current query is only whitespace #493

tconbeer opened this issue Mar 29, 2024 · 0 comments · Fixed by #494
Labels
bug Something isn't working

Comments

@tconbeer
Copy link
Owner

          I just run into this with an even more confusing behavior:

As some prompts require the SQL statements to be terminated with a semi-colon, I had added one to the end of the query. When the semi-colon is the last character of the prompt, trying to run the prompt works fine. But if it's not the last character, e.g. another new line or space after the semi-colon, then just nothing happens when trying to run the query.

This behavior is extremely confusing, as there is no error message or anything hinting on the issue. It just feels weirdly broken. I guess the queries should be just trimmed automatically before execution.

Originally posted by @ml31415 in #348 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant