mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Small clickhouse-local fixes.
This commit is contained in:
parent
84b4907b2a
commit
51f57e7079
@ -219,8 +219,12 @@ int LocalServer::main(const std::vector<std::string> & args)
|
||||
{
|
||||
if (!config().has("query") && !config().has("table-structure")) /// Nothing to process
|
||||
{
|
||||
std::cerr << "There are no queries to process.\n";
|
||||
displayHelp();
|
||||
if (!config().has("help"))
|
||||
{
|
||||
std::cerr << "There are no queries to process.\n";
|
||||
displayHelp();
|
||||
}
|
||||
|
||||
return Application::EXIT_OK;
|
||||
}
|
||||
|
||||
@ -278,6 +282,9 @@ int LocalServer::main(const std::vector<std::string> & args)
|
||||
|
||||
processQueries();
|
||||
|
||||
context->shutdown();
|
||||
context.reset();
|
||||
|
||||
return Application::EXIT_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user