table function file - fix use storage file [#add_table_function_file]

This commit is contained in:
decaseal 2018-04-06 15:18:05 +03:00
parent 5b601b9153
commit 9ebe22dd2c

View File

@ -109,7 +109,8 @@ namespace DB
}
else
{
storage = StorageFile::create(absolute_path, -1, db_data_path, getName(), format, columns, context);
Context var_context = context;
storage = StorageFile::create(absolute_path, -1, db_data_path, getName(), format, columns, var_context);
storage->startup();
}