mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Added a comment
This commit is contained in:
parent
ac163ce6c6
commit
ba6a56a485
@ -369,6 +369,8 @@ void StorageFile::rename(const String & new_path_to_table_data, const String & n
|
||||
|
||||
void StorageFile::truncate(const ASTPtr & /*query*/, const Context & /* context */, TableStructureWriteLockHolder &)
|
||||
{
|
||||
/// NOTE: It will throw exception if the file is not created yet.
|
||||
|
||||
if (paths.size() != 1)
|
||||
throw Exception("Can't truncate table '" + table_name + "' in readonly mode", ErrorCodes::DATABASE_ACCESS_DENIED);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user