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

Command Line --query param is not work on Mac #1132

Closed
flowbehappy opened this issue Aug 22, 2017 · 4 comments
Closed

Command Line --query param is not work on Mac #1132

flowbehappy opened this issue Aug 22, 2017 · 4 comments

Comments

@flowbehappy
Copy link
Contributor

flowbehappy commented Aug 22, 2017

$ clickhouse-client --query="show tables"
Code: 62. DB::Exception: Syntax error: failed at position 5 (end of query): . Expected one of: CREATE, PROCESSLIST, TABLES

It works on Linux but fails on Mac. Looks like the param parser stop receiving contents after it find white space.

@flowbehappy flowbehappy changed the title Command Line --query param is not work on mac Command Line --query param is not work on Mac Aug 22, 2017
@ztlpn
Copy link
Contributor

ztlpn commented Aug 22, 2017

That's very strange - I couldn't reproduce it. Can you tell which version of ClickHouse and macOS are you using?

@flowbehappy
Copy link
Contributor Author

Commit: fc409f6 on master.
macOS: 10.12.5.
Using the default Terminal.

@flowbehappy
Copy link
Contributor Author

It turns out is my problem on clickhouse-client alias script. Sorry about that.

@filimonov
Copy link
Contributor

Relates #235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants