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

.multi doesn't work when typing query from scratch #2260

Closed
createchange opened this issue Jul 19, 2022 · 2 comments · Fixed by #2282
Closed

.multi doesn't work when typing query from scratch #2260

createchange opened this issue Jul 19, 2022 · 2 comments · Fixed by #2282
Assignees
Labels
bug Something isn't working

Comments

@createchange
Copy link

Describe the bug
.multi on doesn't have desired effect.

I am unable to write a query from scratch using .multi

~ ➜  steampipe query
Welcome to Steampipe v0.15.3
> .multi on
> select
> *
> from
> slack_user;
Error: syntax error at or near "slack_user" (SQLSTATE 42601)
>

It does work when pasting though:

> select
  domain,
  expiration_date
from
  whois_domain
where
  domain in ('apple.com','steampipe.io');
+--------------+---------------------------+
| domain       | expiration_date           |
+--------------+---------------------------+
| apple.com    | 2023-02-20T00:00:00-05:00 |
| steampipe.io | 2022-10-13T15:28:29-04:00 |
+--------------+---------------------------+

I tried typing the above:

> .multi on
> .multi
multi-line mode is on. You can disable it with: .multi off
>
> select
>   domain,
>   expiration_date
> from
>   whois_domain
> where
>   domain in ('apple.com');
Error: syntax error at or near "domain" (SQLSTATE 42601)

Steampipe version (steampipe -v)
~ ➜ steampipe -v
steampipe version 0.15.3

To reproduce
See above

Expected behavior
Multi line functions when typing a query from scratch.

Additional context
Mac Monterey 12.4
iTerm2 Build 3.4.16
zsh

@createchange createchange added the bug Something isn't working label Jul 19, 2022
@e-gineer
Copy link
Contributor

oof - thanks for letting us know @createchange!

I've confirmed this is an issue with both .multi on in the interactive terminal and when setting multi = true in the default.spc config file.

Until we get a fix, here are a couple of workarounds that may be helpful:

@createchange
Copy link
Author

Thank you for the workarounds!

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.

3 participants