mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #16859 from su-houzhen/fix_build_error
Fix build err
This commit is contained in:
commit
2a1911d08f
@ -1293,9 +1293,11 @@ int main(int argc, const char *argv[])
|
||||
return 1;
|
||||
}
|
||||
if (vm.count("input"))
|
||||
freopen(vm["input"].as<std::string>().c_str(), "r", stdin);
|
||||
if (!freopen(vm["input"].as<std::string>().c_str(), "r", stdin))
|
||||
std::cout << "Error while input." << std::endl;
|
||||
if (vm.count("output"))
|
||||
freopen(vm["output"].as<std::string>().c_str(), "w", stdout);
|
||||
if (!freopen(vm["output"].as<std::string>().c_str(), "w", stdout))
|
||||
std::cout << "Error while output." << std::endl;
|
||||
if (vm.empty())
|
||||
std::cout << "Copy your queries (with semicolons) here, press Enter and Ctrl+D." << std::endl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user