未验证 提交 982da98e 编写于 作者: T tavplubix 提交者: GitHub

Update InterpreterDropQuery.cpp

上级 6325f850
......@@ -132,12 +132,12 @@ BlockIO InterpreterDropQuery::executeToTable(
database_and_table.first->removeTable(context, database_and_table.second->getTableName());
database_and_table.second->is_dropped = true;
String database_data_path = context.getPath() + database_and_table.first->getDataPath();
String database_data_path = database_and_table.first->getDataPath();
/// If it is not virtual database like Dictionary then drop remaining data dir
if (!database_data_path.empty())
{
String table_data_path = database_data_path + "/" + escapeForFileName(database_and_table.second->getTableName());
String table_data_path = context.getPath() + database_data_path + "/" + escapeForFileName(table_name);
if (Poco::File(table_data_path).exists())
Poco::File(table_data_path).remove(true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册