This commit is contained in:
avogar 2022-01-24 22:06:43 +03:00
parent a6740d2f9a
commit fed54e0204

View File

@ -315,9 +315,6 @@ void LocalServer::cleanup()
std::string LocalServer::getInitialCreateTableQuery()
{
if (!config().has("table-structure") && !config().has("table-file"))
return {};
auto table_name = backQuoteIfNeed(config().getString("table-name", "table"));
auto table_structure = config().getString("table-structure", "auto");
@ -327,6 +324,7 @@ std::string LocalServer::getInitialCreateTableQuery()
{
/// Use Unix tools stdin naming convention
table_file = "stdin";
format_from_file_name = FormatFactory::instance().getFormatFromFileDescriptor(STDIN_FILENO);
}
else
{