File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ extern const int ALTER_OF_COLUMN_IS_FORBIDDEN;
8484extern const int CANNOT_EXTRACT_TABLE_STRUCTURE;
8585extern const int STORAGE_REQUIRES_PARAMETER;
8686extern const int UNKNOWN_TABLE;
87- extern const int ACCESS_DENIED;
8887extern const int TABLE_IS_READ_ONLY;
8988}
9089
@@ -1790,7 +1789,9 @@ SinkToStoragePtr StorageMerge::write(
17901789 throw Exception (ErrorCodes::UNKNOWN_TABLE, " Can't find any table to write for storage {}" , getName ());
17911790
17921791 access->checkAccess (AccessType::INSERT, database, table_storage.value ()->getName ());
1793- } else {
1792+ }
1793+ else
1794+ {
17941795 if (!table_to_write)
17951796 throw Exception (ErrorCodes::TABLE_IS_READ_ONLY, " Method write is not allowed in storage {} without described table to write" , getName ());
17961797
You can’t perform that action at this time.
0 commit comments