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

dot commands in interactive prompt fail to execute if there's a file by the same name in the working directory #3558

Closed
binaek opened this issue Jun 12, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@binaek
Copy link
Contributor

binaek commented Jun 12, 2023

Example:

Having a directory / file called .inspect in the working directory leads to the following error when executing .inspect in the interactive prompt

If there's a directory:

> .inspect
Error: ResolveQueryAndArgsFromSQLString failed: error opening file '.inspect': read ./.inspect: is a directory

Tries to execute the contents if it's a file:

> .inspect
Error: syntax error at or near "blah" (SQLSTATE 42601)

Screenshot 2023-06-12 at 5 43 45 PM

@binaek binaek added the bug Something isn't working label Jun 12, 2023
@binaek binaek added this to the 0.20.0 milestone Jun 12, 2023
@binaek binaek self-assigned this Jun 12, 2023
@binaek binaek closed this as completed in c3d21d4 Jun 12, 2023
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

When branches are created from issues, their pull requests are automatically linked.

1 participant