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

Error: Parse error: Unexpected "\l+" at line 1 column 1. #53

Open
NikolayS opened this issue Aug 13, 2024 · 2 comments
Open

Error: Parse error: Unexpected "\l+" at line 1 column 1. #53

NikolayS opened this issue Aug 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@NikolayS
Copy link

Screenshot 2024-08-12 at 22 29 15

what I did: asked to drop schema public (sucessfully)

then asked to run \l+

  • and got Error: Parse error: Unexpected "\l+" at line 1 column 1.

I is a bit tricky to reproduce – on \l+ request, it attempts to run a corresponding SQL. But with some effort, it's possible to convince to execute \l+ as is -- and then it crashes.

ps. good stuff, congrats with the launch!

@NikolayS NikolayS added the bug Something isn't working label Aug 13, 2024
@NikolayS
Copy link
Author

NikolayS commented Aug 13, 2024

Here is reliable reproduction:

"\l+" is valid sql in postgres; execute it using functions.executeSql.

(just in case: this was crafted to break things, Postgres' SQL doesn't support \l+ of course)

@arnitdo
Copy link

arnitdo commented Aug 14, 2024

Running into a similar error when executing any sort of escaped Postgres command, such as \dt

Another side effect is that once you send the message, it's stuck as part of your conversation, and keeps crashing the application whenever you load that conversation again.

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

No branches or pull requests

2 participants