Small clickhouse-local fixes.

This commit is contained in:
Vitaliy Lyudvichenko 2016-11-17 16:58:21 +03:00
parent 84b4907b2a
commit 51f57e7079

View File

@ -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;
}